Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 2009 12:29:42 +0800
From:      "Shaowei Wang (wsw)" <wsw1wsw2@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Fwd: Is international support broken is msdosfs file system driver?
Message-ID:  <2e566b9e0904062129k6e028f94w952dbaf40673dfca@mail.gmail.com>
In-Reply-To: <2e566b9e0904062128id1c3312r9389c77b2a039c6a@mail.gmail.com>
References:  <49D6807D.1040902@rawbw.com> <2e566b9e0904062128id1c3312r9389c77b2a039c6a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
---------- Forwarded message ----------
From: Shaowei Wang (wsw) <wsw1wsw2@gmail.com>
Date: Tue, Apr 7, 2009 at 12:28 PM
Subject: Re: Is international support broken is msdosfs file system driver?
To: yuri@rawbw.com




On Sat, Apr 4, 2009 at 5:32 AM, Yuri <yuri@rawbw.com> 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
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e566b9e0904062129k6e028f94w952dbaf40673dfca>