From owner-freebsd-current@FreeBSD.ORG Tue Feb 10 09:40:45 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 D4828106564A for ; Tue, 10 Feb 2009 09:40:45 +0000 (UTC) (envelope-from pagxir@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.185]) by mx1.freebsd.org (Postfix) with ESMTP id 6B9C68FC1E for ; Tue, 10 Feb 2009 09:40:45 +0000 (UTC) (envelope-from pagxir@gmail.com) Received: by fk-out-0910.google.com with SMTP id f40so1882201fka.11 for ; Tue, 10 Feb 2009 01:40:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=rwRVHgLuHhAvzSyKbl9941vV3C9whm/IalXdCS+DrOs=; b=J2Z6HvV5Z2t4gftJGfiVU96HIt15NpnCYoVl4iS4ZHf6VrIY0855PqguHHhHTcFlD3 CXxZ1JbVSXLA2QN+uMY2RriiMC2gi50nTQbLkgH6B720JwVbqmixVXuZaYFsiOhpOFJd ZEF6ciNICwKhjtBX6vd97zkR0iuoTDZi9INBE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=UdU+ACTLyfaH9N7jvIohgM67aCF3B6bQFY4F+ebSTvCrn5gjxfHt8wqBaA56pGtW04 2gndibohyLLRXEDaICYdI+YSf2ODmMrpOTgQZKw7mZGo266+grMqmawlatZX2NjK1oOq TDHbILw1ipxNH51Jl36+x2WXKkyayaBEZE/R4= MIME-Version: 1.0 Received: by 10.103.117.8 with SMTP id u8mr253500mum.123.1234257153308; Tue, 10 Feb 2009 01:12:33 -0800 (PST) Date: Tue, 10 Feb 2009 17:12:33 +0800 Message-ID: <98869b7c0902100112s6dae54bm4c14487076ceb75c@mail.gmail.com> From: =?UTF-8?B?6KO05Zu95YW0?= To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: 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: Tue, 10 Feb 2009 09:40:46 -0000 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