Date: Mon, 7 Jul 2003 23:56:47 +0500 From: Dmitry Sukhodoev <raven@sputnik.chel.su> To: Mark Woodson <mwoodson@sricrm.com> Cc: stable@freebsd.org Subject: Re[2]: smbfs can't access to files with symbol ? in name and some other Message-ID: <48530541406.20030707235647@sputnik.chel.su> In-Reply-To: <200307031138.50633.mwoodson@sricrm.com> References: <20030701212607.9EAA61A774@sputnik.chel.su> <20030703110900.GH57410@dds.nl> <200307031138.50633.mwoodson@sricrm.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48530541406.20030707235647>