Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#37759 - [cuetools] cuetag.sh fails to parse CJK files

Attached to Project: Community Packages
Opened by Adam (adam900710) - Thursday, 14 November 2013, 01:50 GMT
Last edited by Lukas Jirkovsky (6xx) - Tuesday, 31 December 2013, 11:11 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Lukas Jirkovsky (6xx)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
cuetags.sh fails to parse files whose file name contains UTF-8 CJK codes


Additional info:
* package version(s)
cuetools 1.4.0-1
* config and/or log files etc.
bash -x /usr/bin/cuetags my_cue_file my_flac_files
http://pastebin.com/pdrbeQiL

cue_file was parsed correctly but even I only passed 2 files, it still recoginzed them as 3 files.

Steps to reproduce:
1. Download a cue file which is UTF-8 encoded and has CJK codes and correspoding music(in my case, flacs)
2. Use cuetags my_cue_file my_flac_files
This task depends upon

Closed by  Lukas Jirkovsky (6xx)
Tuesday, 31 December 2013, 11:11 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in cuetools 1.4.0-2
Comment by Adam (adam900710) - Thursday, 14 November 2013, 01:58 GMT
Sorry not the problem of CJK but the space in file names.
------
FILES= FIELDS=
for arg in "$@"; do
case "$arg" in
*.*) FILES="$FILES $arg";;
*) FIELDS="$FIELDS $arg";;
esac
done

set -- $FILES <<< After setting $FILES as arguments, space in filename broke up the filename
if [ $# -ne $ntrack ]; then
echo "warning: number of files does not match number of tracks"
fi

------
Comment by Adam (adam900710) - Thursday, 14 November 2013, 03:15 GMT
http://pastebin.com/uT9tyZh4

Quick fix use bash array from myself.
At least it works now.
Comment by Balló György (City-busz) - Tuesday, 24 December 2013, 11:29 GMT
It has been fixed by upstream: https://github.com/svend/cuetools/pull/15

Loading...