Cant <redirect from file names containing Cyrillic "с"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: dash
dash can not open files for input <redirection if the file names contain the character "с" (code U+0438, a Cyrillic small letter).
Many other Cyrillic characters seem unaffected.
Since dash is used for /bin/sh, this problem may break any /bin/sh scripts which may encounter Cyrillic characters in file names.
DEMO SCRIPT:
#!/bin/dash
file="Леб и Вино (2005) Македонски Пески (flac).m3u"
ls -ld "$file"
while read line ; do
echo "GOT $line"
done < "$file"
RESULTS:
The ls command output is correct, so the filename is not corrupted immediately. However the shell barfs trying to redirect stdin for the while loop; dash prints the error:
"cannot open Леб и Вино (2005) Македон�ки Пе�ки (flac).m3u: No such file"
Note that in the error message, the 'с' characters are replaced by something which, in my system at least, displays as a black diamond with a question mark (�).
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: dash 0.5.5.1-7ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-22-generic x86_64
Architecture: amd64
Date: Mon Oct 11 17:06:55 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release Candidate amd64 (20100928)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: dash
Status changed to 'Confirmed' because the bug affects multiple users.