From owner-freebsd-current@FreeBSD.ORG Fri Feb 13 13:24:42 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 11007106568D for ; Fri, 13 Feb 2009 13:24:42 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id A5BE08FC13 for ; Fri, 13 Feb 2009 13:24:41 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2DC4F.dip.t-dialin.net [217.226.220.79]) by redbull.bpaserver.net (Postfix) with ESMTP id 4FBB12E0FD; Fri, 13 Feb 2009 14:24:35 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id AD07112408F; Fri, 13 Feb 2009 14:24:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1234531468; bh=IN4Y5nVDEJY+kZR53pqU8OeIM6jMiJ6UX ZSzHbgpDac=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=w+QD5q7wVepigRPk+hJ2VZqMoLxkZ0OgOZfcnk8bRvqVSybfn+I2r33b04H+R6E8m h8ZoRHpm/jzpDW34YAX+TSx2qltTQxhrWyMABD8wa/iE2lMiGjSmjFlRXG+d8j2M9ie OtMSH5h4h+vk5zGvEHf76VCPkXcfVlIfO6a8AvIYOUFODN8Cp1fynV4SQ81k60AmkRA Ak1viTSaVPh+5MP+tmSIWMDln7HqvylSkmOQoy/677I6CFqO0/FPaWh50v61PiA4DUD Uw6czfC55CK+ZR+ING0+N49N3974HEmSEzcPA/FYoYqehib9+14L7P2X8WHt8x+Jr2p B7JPNlGmQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n1DDORHM024634; Fri, 13 Feb 2009 14:24:27 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Luna.Leidinger.net (Luna.Leidinger.net [192.168.2.100]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 13 Feb 2009 14:24:26 +0100 Message-ID: <20090213142426.15765x5ggsjk5wkk@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 13 Feb 2009 14:24:26 +0100 From: Alexander Leidinger To: Yoshihiro Ota References: <98869b7c0902100112s6dae54bm4c14487076ceb75c@mail.gmail.com> <20090212183440.GA1446@tops> <20090213001350.52470f39.ota@j.email.ne.jp> In-Reply-To: <20090213001350.52470f39.ota@j.email.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 4FBB12E0FD.BD360 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-9.704, required 6, BAYES_00 -15.00, BR_SPAMMER_URI 2.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, IMPRONONCABLE_2 1.50, LONGWORD 0.30, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: Gleb Kurtsou , freebsd-current@freebsd.org, =?utf-8?b?w6jCo8K0w6XCm8K9w6XChcK0?= 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 13:24:42 -0000 Quoting Yoshihiro Ota (from Fri, 13 Feb 2009 =20 00:13:50 -0500): > On Thu, 12 Feb 2009 20:34:40 +0200 > Gleb Kurtsou wrote: > >> On (10/02/2009 17:12), =E8=A3=B4=E5=9B=BD=E5=85=B4 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): >> > =20 >> http://btload.googlegroups.com/web/msdosfs.patch?gda=3DMzIscT8AAABs_gmy4a= 1S9lRiXjEy-V5OpwtI67JnIGlz0zr18tjObOtoi5oIt3BJMRGeqGBbbj-ccyFKn-rNKC-d1pM_Id= V0 >> > the full tar.bz2 package: >> > =20 >> http://btload.googlegroups.com/web/msdosfs.tar.bz2?gda=3DIG1pBkEAAABs_gmy= 4a1S9lRiXjEy-V5OpwtI67JnIGlz0zr18tjObNLRc95Ps2S1UISaL0WhuitTCT_pCLcFTwcI3Sro= 5jAzlXFeCn-cdYleF-vtiGpWAA >> > >> > I also will patch for ntfs driver >> > =20 >> http://btload.googlegroups.com/web/ntfs.patch?gda=3DOqsHoDwAAABs_gmy4a1S9= lRiXjEy-V5O7RN7t-m4MjZ-5dQn_EvaqDVCWO9_HyYEQJyRQYPtRCL9Wm-ajmzVoAFUlE7c_fAt >> > =20 >> http://btload.googlegroups.com/web/ntfs.tar.bz2?gda=3DzErXED4AAABs_gmy4a1= S9lRiXjEy-V5O7RN7t-m4MjZ-5dQn_EvaqG3K0t6fVz8SMYStF_2dqCPjsKXVs-X7bdXZc5buSfm= x >> > >> > The Chinese characters in the fat32 partition can be displayed =20 >> 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; =20 > http://people.freebsd.org/~imura/kiconv/ > This work was never merged into the tree excpet few bug fixes to =20 > 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 numbe= r > of people) FreeBSD committers to this. Otherwise, people keep reinvening > and posting patches to this topic. Maybe someone could have a look if/what Apple did. Maybe they improved =20 the kiconv part which makes the use of it for what you are interested =20 in possible. Bye, Alexander. --=20 To do two things at once is to do neither. =09=09-- Publilius Syrus http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137