From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 10:58:57 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A82237B401 for ; Mon, 7 Jul 2003 10:58:57 -0700 (PDT) Received: from sputnik.chel.su (sputnik.chel.su [195.54.9.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF0DE43FB1 for ; Mon, 7 Jul 2003 10:58:54 -0700 (PDT) (envelope-from raven@sputnik.chel.su) Received: from skipped_antispam (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id E43D21A750 for ; Mon, 7 Jul 2003 23:58:50 +0600 (YEKST) Received: from skipped_antivirus (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 3AE321A743 for ; Mon, 7 Jul 2003 23:58:50 +0600 (YEKST) Received: from mailhub (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id D14F11A740 for ; Mon, 7 Jul 2003 23:58:48 +0600 (YEKST) Received: from file-srv.office.sputnik.chel.su (file-srv [192.168.1.100]) by sputnik.chel.su (Postfix) with ESMTP id 33F931A73A; Mon, 7 Jul 2003 23:58:48 +0600 (YEKST) Date: Mon, 7 Jul 2003 23:56:47 +0500 From: Dmitry Sukhodoev X-Mailer: The Bat! (v1.60h) Organization: Sputnik X-Priority: 3 (Normal) Message-ID: <48530541406.20030707235647@sputnik.chel.su> To: Mark Woodson In-Reply-To: <200307031138.50633.mwoodson@sricrm.com> References: <20030701212607.9EAA61A774@sputnik.chel.su> <20030703110900.GH57410@dds.nl> <200307031138.50633.mwoodson@sricrm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit cc: stable@freebsd.org Subject: Re[2]: smbfs can't access to files with symbol ? in name and some other X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 17:58:57 -0000 Hello Mark, Thursday, July 3, 2003, 11:38:50 PM, you wrote: MW> On Thursday 03 July 2003 04:09 am, Alex de Kruijff wrote: >> On Wed, Jul 02, 2003 at 03:26:07AM +0600, Dmitry Sukhodoev wrote: >> > >Description: >> > >> > trying to: >> > mount_smbfs -o ro -f 644 -d 755 -N -I 192.168.1.100 -E koi8-r:cp866 >> > //raven@file-srv/e$ /mnt/smb/fileserver and mounted filesystem can't >> > access to files with with non-standart symbols in name, same as ¿ >> > >> > >How-To-Repeat: >> > >> > just mount and try >> > >> > >Fix: >> >> I beleave that this is not a bug but a _feuture_. The SMB protocol just >> isn't design to do this. The window partions also don't allow these >> symbols. >> MW> Not quite true. I've been experiencing a similar problem. There are MW> characters allowed with Windows that aren't accessible when trying use an smb MW> mounted share. MW> The easiest one for me to track down and trace is the # sign on a 2k box. MW> Though there are characters apparently on Win98 and XP boxes. MW> I've tried digging through the documentation for some information on how to MW> change the character mapping to try some kind of workaround (I'm building MW> scripts to backup win shares to s FreeBSD 4.8-STABLE box), but have not had MW> much luck finding any info online for this. for koi8-r and koi8-ru encodings solve in must be in /usr/ports/converters/libiconv/files/patch-dm: === cut === --- lib/koi8_r.h.orig 2003-07-06 21:36:00.000000000 +0600 +++ lib/koi8_r.h 2003-07-06 21:36:00.000000000 +0600 @@ -36,7 +36,7 @@ 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x255c, 0x255d, 0x255e, /* 0xb0 */ 0x255f, 0x2560, 0x2561, 0x0401, 0x2562, 0x2563, 0x2564, 0x2565, - 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x00a9, + 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x2116, /* 0xc0 */ 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, @@ -145,6 +145,8 @@ c = koi8_r_page23[wc-0x2320]; else if (wc >= 0x2500 && wc < 0x25a8) c = koi8_r_page25[wc-0x2500]; + else if (wc == 0x2116) + c = 0xbf; if (c != 0) { *r = c; return 1; --- lib/koi8_ru.h.orig 2001-05-26 12:00:00.000000000 +0600 +++ lib/koi8_ru.h 2003-07-06 22:01:54.000000000 +0600 @@ -34,7 +34,7 @@ 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x0491, 0x045e, 0x255e, /* 0xb0 */ 0x255f, 0x2560, 0x2561, 0x0401, 0x0404, 0x2563, 0x0406, 0x0407, - 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x0490, 0x040e, 0x00a9, + 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x0490, 0x040e, 0x2116, /* 0xc0 */ 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, @@ -151,6 +151,8 @@ c = koi8_ru_page23[wc-0x2320]; else if (wc >= 0x2500 && wc < 0x25a8) c = koi8_ru_page25[wc-0x2500]; + else if (wc == 0x2116) + c = 0xbf; if (c != 0) { *r = c; return 1; === cut === this patch make correct translating of "number" symbol from koi8-r and back. -- Best regards, Dmitry mailto:raven@sputnik.chel.su