Public bug reported:

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
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
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

** Affects: dash (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
Cant <redirect from file names containing Cyrillic "с"
https://bugs.launchpad.net/bugs/658838
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to