From owner-freebsd-net@FreeBSD.ORG Mon Dec 4 06:37:42 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0ACDE16A412 for ; Mon, 4 Dec 2006 06:37:42 +0000 (UTC) (envelope-from weiwu@sdf.lonestar.org) Received: from bossdog.realss.com (bossdog.realss.com [211.157.108.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F51F43CA2 for ; Mon, 4 Dec 2006 06:37:10 +0000 (GMT) (envelope-from weiwu@sdf.lonestar.org) Received: from localhost (unknown [127.0.0.1]) by bossdog.realss.com (Postfix) with ESMTP id 7CB501C00D6 for ; Mon, 4 Dec 2006 14:37:53 +0800 (CST) Received: from bossdog.realss.com ([127.0.0.1]) by localhost (bossdog.realss.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09377-12 for ; Mon, 4 Dec 2006 14:37:51 +0800 (CST) Received: from [218.193.55.195] (unknown [218.85.104.43]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by bossdog.realss.com (Postfix) with ESMTP id DDB994C8F40 for ; Mon, 4 Dec 2006 14:37:50 +0800 (CST) From: =?UTF-8?Q?=E5=BC=A0=E9=9F=A1=E6=AD=A6?= To: freebsd-net@freebsd.org Content-Type: text/plain Date: Mon, 04 Dec 2006 14:37:34 +0800 Message-Id: <1165214254.14766.22.camel@joe.realss.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at bossdog.realss.com Subject: cannot read windows share X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 06:37:42 -0000 Using FreeBSD 6.1, I can mount a windows share but the Chinese characters in folder and file names look junk text to me. Charset conversion (-E parameter of mount_smbfs) do not work at all. If I do ls(1) to a directory that has Chinese character in its name, the process 'ls' will take about 80% CPU resource and hang there forever. Ctrl+C cannot stop it (kill -KILL can). If I run other command that read any file in the directory that has Chinese character in its name, that application hangs there taking about 80% CPU resource too. This process is better illustrated with this screenshot: gopher://sdf.lonestar.org/I/users/weiwu/mount_chinese_smbshare.png In the screenshot, I do have mounted the share with -E parameter which should convert GB18030 folder names to UTF-8 but actually no conversion is done (see the ls | iconv which shows what it should be looking like if the conversion is done) Actually I have never successfully done charset conversion with mount_smbfs, what did I do wrong?