From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 7 04:29:44 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DFDB106578C for ; Tue, 7 Apr 2009 04:29:44 +0000 (UTC) (envelope-from wsw1wsw2@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id D39AA8FC1A for ; Tue, 7 Apr 2009 04:29:43 +0000 (UTC) (envelope-from wsw1wsw2@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so2303628wfg.7 for ; Mon, 06 Apr 2009 21:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:cc:content-type; bh=Vi1AGjq5RUUJgC/S5Jqbp06I11bue8CLbBpyJM+OhM4=; b=h0vZiyb0rvEBJCx1Jspj4XvoXJrs4VM5JRc5h5LE+W2W0r/ScTnDs+0+nXlUH1fSSi qqmtmzqxG9CU5s5Bc3k/0tQlKpNHT5YK+jPuu2f0eeN302lQMfm7vCxouTZDmqJ33+NS PhgkTbwpdpTdVFTr1i/fTy7K/jy8g57zFMyPc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; b=gw+hT1Y2GzoDDamPscKePykiop14m5GsBsuJKxAGosQZ/YqVT23CiRWDV76S0XBznf ZZlL3WNBfXsPYV1jD25blPq0xv0FNkwhYECp+/dBwIV9unnhUdJrgiVm+n6RsWUUws5W B7+tYov2yvLEf8Awmd/DXroH8uU/Ah9HMhPm8= MIME-Version: 1.0 Received: by 10.143.166.10 with SMTP id t10mr1491875wfo.210.1239078582523; Mon, 06 Apr 2009 21:29:42 -0700 (PDT) In-Reply-To: <2e566b9e0904062128id1c3312r9389c77b2a039c6a@mail.gmail.com> References: <49D6807D.1040902@rawbw.com> <2e566b9e0904062128id1c3312r9389c77b2a039c6a@mail.gmail.com> Date: Tue, 7 Apr 2009 12:29:42 +0800 Message-ID: <2e566b9e0904062129k6e028f94w952dbaf40673dfca@mail.gmail.com> From: "Shaowei Wang (wsw)" Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Fwd: Is international support broken is msdosfs file system driver? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2009 04:29:44 -0000 ---------- Forwarded message ---------- From: Shaowei Wang (wsw) 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 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" >