Cant <redirect from file names containing Cyrillic "с"

Bug #658838 reported by jimav
10
This bug affects 2 people
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
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

Revision history for this message
jimav (james-avera) wrote :
Revision history for this message
jimav (james-avera) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dash (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.