From owner-freebsd-current@FreeBSD.ORG Fri Feb 13 05:13:58 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9613C1065672 for ; Fri, 13 Feb 2009 05:13:58 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from mail.asahi-net.or.jp (mail1.asahi-net.or.jp [202.224.39.197]) by mx1.freebsd.org (Postfix) with ESMTP id 658378FC17 for ; Fri, 13 Feb 2009 05:13:58 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from localhost (pool-141-151-76-181.phlapa.east.verizon.net [141.151.76.181]) by mail.asahi-net.or.jp (Postfix) with ESMTP id ED0BB616C1; Fri, 13 Feb 2009 14:13:55 +0900 (JST) Date: Fri, 13 Feb 2009 00:13:50 -0500 From: Yoshihiro Ota To: Gleb Kurtsou Message-Id: <20090213001350.52470f39.ota@j.email.ne.jp> In-Reply-To: <20090212183440.GA1446@tops> References: <98869b7c0902100112s6dae54bm4c14487076ceb75c@mail.gmail.com> <20090212183440.GA1446@tops> X-Mailer: Sylpheed 2.6.0 (GTK+ 2.12.11; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org, =?UTF-8?B?6KO05Zu95YW0?= Subject: Re: patch: let msdosfs(vfat)/ntfs to support UTF-8 locale well X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2009 05:13:58 -0000 On Thu, 12 Feb 2009 20:34:40 +0200 Gleb Kurtsou wrote: > On (10/02/2009 17:12), 裴国兴 wrote: > > I write a patch to support UTF-8 locale well. I think it maybe help > > for some FreeBSD user. > > follow link is the patch (base on FreeBSD 7.1): > > http://btload.googlegroups.com/web/msdosfs.patch?gda=MzIscT8AAABs_gmy4a1S9lRiXjEy-V5OpwtI67JnIGlz0zr18tjObOtoi5oIt3BJMRGeqGBbbj-ccyFKn-rNKC-d1pM_IdV0 > > the full tar.bz2 package: > > http://btload.googlegroups.com/web/msdosfs.tar.bz2?gda=IG1pBkEAAABs_gmy4a1S9lRiXjEy-V5OpwtI67JnIGlz0zr18tjObNLRc95Ps2S1UISaL0WhuitTCT_pCLcFTwcI3Sro5jAzlXFeCn-cdYleF-vtiGpWAA > > > > I also will patch for ntfs driver > > http://btload.googlegroups.com/web/ntfs.patch?gda=OqsHoDwAAABs_gmy4a1S9lRiXjEy-V5O7RN7t-m4MjZ-5dQn_EvaqDVCWO9_HyYEQJyRQYPtRCL9Wm-ajmzVoAFUlE7c_fAt > > http://btload.googlegroups.com/web/ntfs.tar.bz2?gda=zErXED4AAABs_gmy4a1S9lRiXjEy-V5O7RN7t-m4MjZ-5dQn_EvaqG3K0t6fVz8SMYStF_2dqCPjsKXVs-X7bdXZc5buSfmx > > > > The Chinese characters in the fat32 partition can be displayed correctly now. > > > > when mount windows partitions, you should do like this: > > mount_ntfs -C UTF-8 /dev/ad?s? /path/to/mount > > mount_msdosfs -L zh_CN.UTF-8 /dev/ad?s? /path/to/mount > > I've also looked at it recently but my idea was to update kiconv to > handle ucs-2 (or whatever it is) -> utf-8 conversion in kernel. kiconv > supports different translation methods. Current implementation just > creates a table for ucs2->utf-8 conversion and passes it too kernel. It > seems it can't even handle all of unicode chars. > Fixing kiconv would be a better solution, imho. Some people attempted to improve kinconv and locale on filesystems. I only remember this one at this moment; http://people.freebsd.org/~imura/kiconv/ This work was never merged into the tree excpet few bug fixes to other reasons. This was back in 5.x relases. So, it doesn't apply cleanly these days. I also seens some people posted similar patches to the list in past years. However, none of them got any attentions to the project. I think we somehow have to get enough attensions of some (reasonable number of people) FreeBSD committers to this. Otherwise, people keep reinvening and posting patches to this topic. Regards, Hiro