From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 3 21:32:50 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 73655106564A for ; Fri, 3 Apr 2009 21:32:50 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell.rawbw.com (shell.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 616BA8FC08 for ; Fri, 3 Apr 2009 21:32:50 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from eagle.syrec.org (ppp-71-139-21-14.dsl.snfc21.pacbell.net [71.139.21.14]) (authenticated bits=0) by shell.rawbw.com (8.13.6/8.13.6) with ESMTP id n33LWlbD071260 for ; Fri, 3 Apr 2009 14:32:47 -0700 (PDT) Message-ID: <49D6807D.1040902@rawbw.com> Date: Fri, 03 Apr 2009 14:32:45 -0700 From: Yuri User-Agent: Thunderbird 2.0.0.21 (X11/20090322) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Is international support broken is msdosfs file system driver? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: yuri@rawbw.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2009 21:32:50 -0000 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? 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? Yuri