ftrvxmtrx / split2flac

Split flac/ape/wv/wav + cue sheet into separate tracks
253 stars 34 forks source link

broken charset in cue results in scary bash syntax errors #17

Open ygrek opened 10 years ago

ygrek commented 10 years ago
split2flac -p -f ogg Ноль\ \ -\ Лучшее\ CD1.\ Лучшее\ CD1.flac
Output format : OGG VORBIS (-q 10)
Output dir    : .
Cue sheet is not utf-8
Please enter the charset (or just press ENTER to ignore) > 
Cue sheet     : /home/ygrek/.split2flac_OINJO.cue
Cover image   : not set
Copy over     : Covers,covers,*.log,*.txt,*.jpg,*.cbr
/home/ygrek/bin/split2flac: 433: [: -lt: argument expected
Failed to get number of tracks from CUE sheet.
There may be an error in the sheet.
/home/ygrek/bin/split2flac: 123: printf: %N: invalid directive
Running cueprint -n 1 -t 5: syntax error
/home/ygrek/.split2flac_OINJO.cue: input file error

Finished

The problem comes from cueprint invocation and TRACKS_NUM becomes empty. Example cue (in cp1251) : http://www.sendspace.com/file/lqbtw8 Specifying cp1251 explicitely solves the problem, just that the errors look very scary :)