Red Hat Bugzilla – Bug 192541
vfat filesystem ignores the iocharset option
Last modified: 2007-11-30 17:11:33 EST
Description of problem:
The vfat module ignores the "iocharset" option and always assumes that UTF-8 is
used as system charset. Basically this means that any files/directories are
unusable if your system charset differs from UTF-8. The "codepage" option works
for short filenames (without long Unicode equivalents) which is correct.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Unpack the attached file vfat-img.bz2. This is a tiny VFAT image made
manually with some files/directories using codepage 866 (cyrillic).
2. Mount it like this:
mount vfat-img /mnt/tmp -o loop,codepage=866,iocharset=cp1251
LANG=ru_RU.KOI8-R ls -la /tmp >list.txt
4. Compare resulting list.txt with the file tmp/file-list.txt.
The file names in list.txt are in UTF-8, while the file names in
tmp/file-list.txt are in KOI8-R.
The file list in both lists are in the same encoding.
Created attachment 129722 [details]
A tiny VFAT image with files/directories using Cyrillic
Actually after looking at kernel SRPM it seems that this bug is due to the
incorrectly resolved bug #181963.
Closing this bug.
*** This bug has been marked as a duplicate of 181963 ***