From owner-freebsd-current@FreeBSD.ORG Wed Jun 11 04:53:01 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C4841065676; Wed, 11 Jun 2008 04:53:01 +0000 (UTC) (envelope-from fbsd-current@mawer.org) Received: from outbound.icp-qv1-irony-out4.iinet.net.au (outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.150]) by mx1.freebsd.org (Postfix) with ESMTP id C78208FC15; Wed, 11 Jun 2008 04:53:00 +0000 (UTC) (envelope-from fbsd-current@mawer.org) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUBALT0TkjLzq3r/2dsb2JhbAAIsFc X-IronPort-AV: E=Sophos;i="4.27,622,1204470000"; d="scan'208";a="233714545" Received: from unknown (HELO [10.24.1.1]) ([203.206.173.235]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 11 Jun 2008 12:41:56 +0800 Message-ID: <484F5726.9050300@mawer.org> Date: Wed, 11 Jun 2008 14:40:06 +1000 From: Antony Mawer User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Stanislav Sedov References: <7d6fde3d0806091102k62637099qbaa73ca4d38ff64c@mail.gmail.com> <484DB796.4030204@mawer.org> <20080611022502.3d6c01d5.stas@FreeBSD.org> In-Reply-To: <20080611022502.3d6c01d5.stas@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Garrett Cooper , current@freebsd.org, Peter Wemm Subject: Re: Moving from smbfs to cifs 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: Wed, 11 Jun 2008 04:53:01 -0000 Stanislav Sedov wrote: > On Tue, 10 Jun 2008 09:07:02 +1000 > Antony Mawer mentioned: > >> - Problems dealing with various character encodings in filenames > > What problems you mean? It has a '-E' switch to set encoding. > E.g. '-E koi8-r:cp866' always works for me. The problems I was referring to are mainly regarding smbfs on FreeBSD talking to Samba on Mac OS X. My understanding (from conversations with R. Imura) is that the Mac OS X implementation of Samba speaks Unicode by default, whereas the smbfs implementation is not multi-byte aware. This can lead to situations where files on the Mac OS X server with multi-byte characters in the filenames are not accessible via SMBFS - they appear with jumbled names in the directory listing, and cannot be accessed using any name (smbfs returns "file not found"). I stumbled across patches available by R. Imura which are a work todays adding Unicode support to smbfs, and from what I gather are derived from changes in Darwin (Mac OS X) smbfs: http://people.freebsd.org/~imura/kiconv/ There are potentially other improvements available from the Darwin SMBFS implementation, available here: http://www.opensource.apple.com/darwinsource/10.5.2/ http://www.opensource.apple.com/darwinsource/tarballs/other/smb-348.1.tar.gz --Antony