[hafqa] [hafqa] [Bug 3779] New: ke-recv should use locale-dependent encoding for mmc mounting

From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.org
Date: Sun Oct 5 20:28:35 EEST 2008
https://bugs.maemo.org/show_bug.cgi?id=3779

           Summary: ke-recv should use locale-dependent encoding for mmc
                    mounting
           Product: System software
           Version: 4.1.2 (4.2008.36-5)
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Low
         Component: mmc-and-usb
        AssignedTo: kimmo.hamalainen at nokia.com
        ReportedBy: anpaza at mail.ru
         QAContact: mmc-and-usb-bugs at maemo.org


SOFTWARE VERSION:
(Control Panel > General > About product)
DIABLO_4.2008.36-5_PR_MR0

STEPS TO REPRODUCE THE PROBLEM:
# Create a directory with lowercase cyrillic name
mkdir /media/mmc1/тест
# Create same directory with uppercase cyrillic name
mkdir /media/mmc1/ТЕСТ

EXPECTED OUTCOME:
The second command should give a "directory already exists" error

ACTUAL OUTCOME:
Both directories will be created. A FAT file system with two directories with
same name, differing only in case will behave unexpectedly under, for example,
Windows.

REPRODUCIBILITY:
always

OTHER COMMENTS:
The problem occurs because the card is mounted with options
codepage=cp437,iocharset=iso8859-1,utf8. In fact, iocharset has no meaning if
utf8 is set, but cp437 gives the encoding for short names, and since cp437 has
no representation for cyrillic glyphs it will translate the short name to
something unexpected (this has the side effect that if there's no long name for
a file, the short name will contain weird characters instead of characters >
127).

Also if you mount such a card using the 'fat' (not 'vfat') file system, all
short names containing characters >127 will be bogus (In my above case I
checked the hexdump of the volume and it contained "______~2" as the shortname
of the directory "ТЕСТ").

The right codepage= for Russian is cp866. Every other language has its own
codepage too, so I think ke-recv should use the codepage which is associated
with the current language chosen in the device.

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; ru-RU; rv:1.9.0.2)
Gecko/2008092318 Fedora/3.0.2-1.fc9 Firefox/3.0.2


-- 
Configure bugmail: https://bugs.maemo.org/userprefs.cgi?tab=email
Replies to this email are NOT read, instead please add comments at
https://bugs.maemo.org/show_bug.cgi?id=3779
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the hafqa mailing list