Red Hat Bugzilla – Bug 28242
vfat long filename accented chars support broken after glibc update
Last modified: 2007-04-18 12:31:33 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.16-22 i586)
When I list directories on vfat partitions of the machine, accented chars
(scandinavian characters) list as blank spaces in Gnome fm, question marks
(?) in text console. This happens at least with long filenames.
Reproducible: Didn't try
Steps to Reproduce (probably):
1. Install RH7.0 or: Install RH6.2 and upgrade to 7.0...
2. Apply all updates for RH7.0 ('rpm -Fvh *.rpm')
3. Mount vfat partition(s) (defaults or any codepage/char set)
4. Try to list directories on vfat partitions that have scandinavian chars
5. Scandinavian chars show as ? in text console, space in Gnome FM
Actual Results: With RH6.2 and 7.0 (no updates) scandinavian chars
translated as expected but after installing all updates available on
2001-02-12, the translation ceased functioning. Glibc-2.2-12 was upgraded
according to instructions in RHSA-2001-001.
Expected Results: No change in character set translation.
Scandinavian chars still show normally in ext2fs partitions. The bug might
also be somewhere else in the updates...
Can you please provide a tar with some of such files (they can have
zero or minimal lengths), if it is reproduceable by mounting vfat,
unpacking such tar and listing (do you mean ls on the text console?)?
Thanks for responding. I have studied this a little more (asked some experts) and it seems to be clear that this has nothing to do with glibc update but
something else (most probably mount update) in security updates or bug fixes.
I also found a workaround: mount vfat partitions with the following options in fstab:
/dev/hda1 /mnt/win_c vfat codepage=437,iocharset=iso8859-1,defaults 0 0
Without iocharset setting, the scandinavian chars don't show normally in filenames.
Original filename "sata kesdd tuhat yvtd.mp3"
shows like "sata kes?? tuhat y?t?.mp3" in text console (with ls)
and "sata kes tuhat yt.mp3" in gnome file manager. Some gnome applications also show spaces in the place of scandinavian chars.
I have not updated the RH7.0 original kernel yet but I'm using KEYTABLE=fi-latin1 setting in /etc/sysconfig/keyboard. Without this setting the
scandinavian characters did not work at all in text mode (after the security and bug fix updates).
It also seems that not everybody that has updated their RH7.0 system has encountered this phenomenon but there are other cases. The workaround I
found is good enough for me but I'd still like to know what caused the change.
Additional note: This bugzilla does not support scandinavian characters correctly: the filename I used as an example is "sata kes[a with two dots on
top][a with two dots on top] tuhat y[o with two dots on top]t[a with two dots on top].mp3. Hope this is clear enough.