Jakub Jermar | 9 Apr 2012 19:34
Picon
Gravatar

Handling non-ASCII filenames by mkfat.py

Hi,

the attached patch replaces the potentially non-D-characters in the 8.3
format file name with underscores (to be consistent with what HelenOS
FAT server does). While this conversion appears to work, the patch
reveals that the long file names with non-ASCII characters as created by
the mkfat.py script don't seem right. For example, leaving a file name
such as 'žížala' somewhere under uspace/dist creates a rather bogus
entry in the initrd.img.

I also made some changes to the FAT server to allow viewing the short
file names when the file system is mounted with the 'nolfn' mount option.

lp:~jakub/helenos/fs

The problem with non-ASCII file names is best viewed when the file
system is mounted with default = no mount options. And of course, having
bogus unicode long file names results in having incorrect short names
(misplaced underscores) too.

Can someone better versed in Python take a look at this?

Thanks,
Jakub

Attachment (mkfat.py.patch): text/x-patch, 1533 bytes
_______________________________________________
HelenOS-devel mailing list
HelenOS-devel@...
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Gmane