You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
index out of bounds: the len is 1 but the index is 2 when trying to decode聽#6
[brain@ignatenko-w541 ~]$ echo "馃憻馃憸馃懀馃懀馃懄馃悂" | base100 -d
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 2', src/main.rs:91:20
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Aborted (core dumped)
Any news on this issue?
I'm using "base100 --decode {path_to_file}" in my script, so I guess "echo -n" is not available for me. Is there an another workaround?
Activity
igor-raits commentedon Feb 14, 2018
weird enough when doing
echo hello | base100 | base100 -d, everything works fineAdamNiederer commentedon Feb 14, 2018
Try
echo -n "馃憻馃憸馃懀馃懀馃懄馃悂". The newline at the end is probably causing the panic, because it's only one byte instead of four.igor-raits commentedon Feb 14, 2018
Oh, that worked. Is there any way we can make newline to work? Also in output too.
AdamNiederer commentedon Feb 14, 2018
Yeah, I can strip a newline off of the input and add one to the output. I'll have that in the next release.
MasterGroosha commentedon May 10, 2019
Any news on this issue?
I'm using "base100 --decode {path_to_file}" in my script, so I guess "echo -n" is not available for me. Is there an another workaround?
0xpr03 commentedon Jul 9, 2019
echo "Hallo Tristan wie geht es dir?" | base100 > out.txtcat out.txt | base100 -dthis way it works