From owner-freebsd-fs@FreeBSD.ORG Mon Jan 17 16:01:35 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D215116A4CE; Mon, 17 Jan 2005 16:01:35 +0000 (GMT) Received: from elrond.anembo.nu.org (dsl-202-173-130-73.nsw.westnet.com.au [202.173.130.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC6BE43D2F; Mon, 17 Jan 2005 16:01:33 +0000 (GMT) (envelope-from cjsv@elrond.anembo.nu.org) Received: from elrond.anembo.nu.org (localhost [127.0.0.1]) by elrond (8.13.1/8.13.1) with ESMTP id j0H3Mvvj002376; Mon, 17 Jan 2005 14:22:57 +1100 (EST) (envelope-from cjsv@elrond.anembo.nu.org) Received: (from cjsv@localhost) by elrond.anembo.nu.org (8.13.1/8.13.1/Submit) id j0H3MtlY002375; Mon, 17 Jan 2005 14:22:55 +1100 (EST) (envelope-from cjsv) Date: Mon, 17 Jan 2005 14:22:55 +1100 From: Christopher Vance To: David Yu Message-ID: <20050117032255.GC630@nu.org> References: <20050117020039.GB630@nu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: cc: freebsd-fs@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: NTFS unicode converting problem X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jan 2005 16:01:36 -0000 On Sun, Jan 16, 2005 at 06:25:52PM -0800, David Yu wrote: >In my case, those Chinese filenames are still in UCS-2LE, and all >characters are in plane 0. I tried to modify codes so that it can >directly store the conversion result into the dirent structure, but >the convchr() funtion failed everytime for Chinese character while >there is no problem with Ascii characters. I thought converting from >UCS-2 to UTF-8 should be very easy? Maybe the conversion routine disagrees with you about byte order? -- Christopher Vance