[linux-cifs-client] Samba fc3: accent problem - smbfs vs cifs

Jeff Layton jlayton at redhat.com
Fri Jun 13 10:33:45 GMT 2008


On Thu, 12 Jun 2008 23:44:36 +0200
ROUZET Marc <mrouzet at club-internet.fr> wrote:

> Hello,
> 
> Not to "add a layer" (a translated french expression) but to help in your investigations, I give you the results of my tests :
> I have a little file server (under an Unix OS or a Dos-lite OS, I don't know but the results tells me that it is an Unix one) that I can't tune, a PC under Windows XP and my "main" PC with KUbuntu 8.04.
> 
> With the new CIFS, under KUbuntu, when I mount a shared directory on my fileserver, I obtain (KO) :
> 
> # /sbin/lsmod | grep nls
> nls_utf8                2944  2
> nls_cp437               6656  2
> # modprobe nls_cp850
> # /sbin/lsmod | grep nls
> nls_cp850               5888  0
> nls_utf8                2944  2
> nls_cp437               6656  2
> # mount -t cifs //CONNECTEC/Partage_1 /mnt/CONNECTEC/Partage_1/ -o credentials=/root/.smbcredentials,iocharset=utf8
> # ll /mnt/CONNECTEC/Partage_1/
> total 8192
> -rwxrwSrwx 1 marc marc  229965 2007-12-21 12:14 18782.pdf
> drwxrwxrwx 1 marc marc       0 2006-11-22 16:12 AoE
> -rwxrwSrwx 1 marc marc     594 2007-05-03 14:13 CB.TXT
> drwxrwxrwx 1 marc marc       0 2008-05-28 22:00 Public
> -rwxrwSrwx 1 marc marc  495717 2005-04-26 12:08 SecureLOCK.exe
> -rwxrwSrwx 1 marc marc     191 2007-04-28 22:43 TestDesAccentu?s.txt
> -rwxrwSrwx 1 marc marc 1425408 2004-11-30 14:16 TravelItEasy.exe
> # ll -b /mnt/CONNECTEC/Partage_1/
> total 8192
> -rwxrwSrwx 1 marc marc  229965 2007-12-21 12:14 18782.pdf
> drwxrwxrwx 1 marc marc       0 2006-11-22 16:12 AoE
> -rwxrwSrwx 1 marc marc     594 2007-05-03 14:13 CB.TXT
> drwxrwxrwx 1 marc marc       0 2008-05-28 22:00 Public
> -rwxrwSrwx 1 marc marc  495717 2005-04-26 12:08 SecureLOCK.exe
> -rwxrwSrwx 1 marc marc     191 2007-04-28 22:43 TestDesAccentu\202s.txt
> -rwxrwSrwx 1 marc marc 1425408 2004-11-30 14:16 TravelItEasy.exe
> # ll /mnt/CONNECTEC/Partage_1/ | iconv -f CP850
> total 8192
> -rwxrwSrwx 1 marc marc  229965 2007-12-21 12:14 18782.pdf
> drwxrwxrwx 1 marc marc       0 2006-11-22 16:12 AoE
> -rwxrwSrwx 1 marc marc     594 2007-05-03 14:13 CB.TXT
> drwxrwxrwx 1 marc marc       0 2008-05-28 22:00 Public
> -rwxrwSrwx 1 marc marc  495717 2005-04-26 12:08 SecureLOCK.exe
> -rwxrwSrwx 1 marc marc     191 2007-04-28 22:43 TestDesAccentués.txt
> -rwxrwSrwx 1 marc marc 1425408 2004-11-30 14:16 TravelItEasy.exe
> #
> 
> With the new CIFS, under KUbuntu, when I mount a shared directory on my PC under Windows XP, I obtain (OK) :
> 
> # mount -t cifs //PC2/De /mnt/PC2/Public/ -o credentials=/root/.smbcredentials,uid=marc,gid=marc,iocharset=utf8
> # ll /mnt/PC2/Public/
> total 748
> drwxrwxrwx 1 marc marc      0 2001-04-07 13:00 Codes
> drwxrwxrwx 1 marc marc      0 2007-01-11 22:21 Public
> drwxrwxrwx 1 marc marc      0 2006-10-22 10:54 Fichiers téléchargés
> drwxrwxrwx 1 marc marc      0 2000-07-09 15:57 PC2
> drwxrwxrwx 1 marc marc      0 2003-10-04 15:20 System Volume Information
> drwxrwxrwx 1 marc marc      0 2005-03-24 13:41 Temporaire
> -rwxrwSrwx 1 marc marc    191 2007-04-28 22:43 TestDesAccentués.txt
> drwxrwxrwx 1 marc marc      0 2000-07-07 13:54 Tools
> -rwxrwSrwx 1 marc marc 600374 2003-10-05 23:53 w98Sérieux_PropriétésSystème.bmp
> #
> 
> >From the PC under Windows XP, when I list the shared directory on my fileserver, I obtain (OK) :
> 
> C:\>dir s:
>  Le volume dans le lecteur S s'appelle Partage_1
>  Le numéro de série du volume est 44C5-6DC6
> 
>  Répertoire de S:\
> 
> 01/01/1601  02:00    <REP>          .
> 03/06/2008  21:23    <REP>          ..
> 26/04/2005  12:08           495 717 SecureLOCK.exe
> 30/11/2004  15:16         1 425 408 TravelItEasy.exe
> 28/05/2008  22:00    <REP>          Public
> 22/11/2006  17:12    <REP>          AoE
> 28/04/2007  22:43               191 TestDesAccentués.txt
> 03/05/2007  14:13               594 CB.TXT
> 21/12/2007  13:14           229 965 18782.pdf
>                5 fichier(s)        2 151 875 octets
>                4 Rép(s)     639 139 840 octets libres
> C:\>
> 
> As I expected, if I create a file under KUbuntu (new CIFS) on the shared directory on my fileserver :
> # touch /mnt/CONNECTEC/TwistPRO_e1/Nouveauté.test
> I obtain by Windows XP (see the last file) :
> C:\>dir s:
>  Le volume dans le lecteur S s'appelle Partage_1
>  Le numéro de série du volume est 44C5-6DC6
> 
>  Répertoire de S:\
> 
> 01/01/1601  02:00    <REP>          .
> 03/06/2008  21:23    <REP>          ..
> 26/04/2005  12:08           495 717 SecureLOCK.exe
> 30/11/2004  15:16         1 425 408 TravelItEasy.exe
> 28/05/2008  22:00    <REP>          Public
> 22/11/2006  17:12    <REP>          AoE
> 28/04/2007  22:43               191 TestDesAccentués.txt
> 03/05/2007  14:13               594 CB.TXT
> 21/12/2007  13:14           229 965 18782.pdf
> 12/06/2008  22:38                 0 Nouveaut&#9500;®.test
>                6 fichier(s)        2 151 875 octets
>                4 Rép(s)     639 139 840 octets libres
> C:\>
> 
> I hope these notes will help you, and I would like to be noticed when a corrected version will be available, because I can't yet use my fileserver with my favorite distribution since the new version of KUbuntu.
> 

I think this is a known problem. CIFS doesn't yet support
non-unicode/non-ascii charsets on the fileserver. I have a vague idea
of what it will take to get this working (we need to add a codepage=
option similar to what smbfs has). I think Gunter Kukkukk was also
looking at this and has done some cleanup patches that will make it
easier to implement this, but again the actual work hasn't yet been
done.

Cheers,
-- 
Jeff Layton <jlayton at redhat.com>


More information about the linux-cifs-client mailing list