---------- Forwarded message ---------- From: Shaowei Wang (wsw) <[email protected]> Date: Tue, Apr 7, 2009 at 12:28 PM Subject: Re: Is international support broken is msdosfs file system driver? To: [email protected]
On Sat, Apr 4, 2009 at 5:32 AM, Yuri <[email protected]> wrote: > I have a FAT disk written in Windows that has Chinese characters in file > names. > > When I mount this disk without any special options I see question marks in > place of Chinese characters. > When I mount with options -D=CP950,-L=zh_TW.Big5 there are still some > question marks and garbage characters. > When I mount with options -D=CP936,-L=zh_CN.GBK there are also some > question marks and garbage characters in place of Chinese. > > I read the contents with 'ls' command from x-terminal in kde4. Normally > Chinese characters are shown ok this way. > > My question is how to read proper file names from FAT disk in FreeBSD? try -L zh_CN.euc . FreeBSD-current don't have UTF-8 support for FAT filesystem. > > Also the concept of even having the options like -D=CP950,-L=zh_TW.Big5 > seems questionable. > What if there are files with names in many encodings are on the same FS? > Which options should be used? > Shouldn't msdosfs driver just show international characters without any > special options like ufs driver normally does? Windows file system use a different way to encode i18n chars, like code page. There is a hacked version of msdosfs which can support UTF-8 locale. http://groups.google.com/group/btload/web/msdosfs.tar.bz2 and for using: mount_msdosfs -L zh_CN.UTF-8 /dev/ad?s? /path/to/mount I've tried it and it's work. > > Yuri > > _______________________________________________ > [email protected] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "[email protected]" > _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[email protected]"

