This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#5736 - Correctly handle files with long names containing non-latin characters
|
DetailsCorrectly handle files with long names containing non-latin characters (more precisely: files whose names, when utf8 encoded, require more than 255 bytes). This avoids player freeze when such files are present in the file system.
The patch does the following. When reading a entry for a file with long name, the name is first utf8-decoded into a temporary buffer. Then the check is made whether the content of the buffer would fit into the dir entry. If not, the long name is ignored and the short DOS name (which is OEM encoded) is used instead. Beware: If this short name contains characters from the upper half of the code page, that name may appear with strange glyphs or empty character in the file browser. This is because Unicode characters 0x80 to 0x9F are control characters. They can't be displayed. |
This task depends upon
Closed by Rani Hod (RaeNye)
Tuesday, 01 August 2006, 01:00 GMT+2
Reason for closing: Accepted
Additional comments about closing: P.S.
Please use spaces instead of tabs in RB code.
Tuesday, 01 August 2006, 01:00 GMT+2
Reason for closing: Accepted
Additional comments about closing: P.S.
Please use spaces instead of tabs in RB code.
2. Please avoid submitting only-whitespace changes.
The fixed patch is attached, later I'll actually compile it.
Please check it on your sim.
To the problem: is fat.c used in simulator builds? I haven't found fat.o in the sim build directory. In the normal (=not sim) build fat.o is present (in firmware/drivers). So the patch may have no effect in the sim build.
Ok, I will in the future. I won't correct this patch since there are many lines longer than 80 chars in fat.c anyway.
I need your real name to do so.
My name is Alexander Levin