[Samba] some upper case letters with accent don't appear in file names

Denis Poisson denisp at netc.net
Tue Mar 14 17:22:07 GMT 2006


I  have a backup server (Linux Debian 3.1) that connects to several Windows
2000 and 2003 servers shares with smbmount 3.0.14a. This is how I mount the
shares:

smbmount "\\\\win2000\\inetpubd" /mnt/win2000/ -o
username=backups,password=mypwd

If I list items with accents, this is a sample of how they appear on the
mounted share:

drwxr-xr-x 1 root root 4096 2005-12-01 16:45 D?but de saison 0506 en photos
drwxr-xr-x 1 root root 4096 2005-05-05 22:14 Les six ?quipes 2001
-rwxr-xr-x  1 root root 1316 2006-02-10 20:25 LETENDREAGNES_6280f.rtf
drwxr-xr-x 1 root root 4096 2005-05-05 22:16 No?l 2004

If, instead I mount the share like this:

smbmount "\\\\web2000\\inetpubd" /mnt/web2000/ -o
username=backups,password=mypwd,codepage=cp863,iocharset=iso8859-1

where 863 is the codepage for OEM - Canadian French (I also tried many other
Latin1, US and Canadian codepages such as cp37, cp437, cp850, cp28591,
etc.), most accents appear properly on the share:

drwxr-xr-x 1 root root 4096 2005-12-01 16:45 Début de saison 0506 en photos
drwxr-xr-x 1 root root 4096 2005-05-05 22:14 Les six équipes 2001
-rwxr-xr-x  1 root root 1316 2006-02-10 20:25 LETENDREAGNES_6280f.rtf
drwxr-xr-x 1 root root 4096 2005-05-05 22:16 Noël 2004

This works for most accented letters except a few specific accented upper
case letters such as È, Ù and Ô.  In these cases, the upper case letter is
displayed without the accent.  And if I try an operation on the file I get a
"No such file or directory" error.  For example, the real File name on the
Windows server is:

LETENDREAGNÈS_6280f.rtf  (notice the upper case e-grave È)

but on the samba mount if I get a directory listing, it gets listed without
the accent on the uppercase e-grave, whether or not I specify a codepage in
the smbmount options:

LETENDREAGNES_6280f.rtf

and if I try to do a simple operation such as cat on that file:

cat: /mnt/avocat/avocat/testament/factures/LETENDREAGNES_6280f.rtf: No such
file or directory

Other uppercase accented letters such as É, Ö, Ü and À don't have that
problem and therefore appear correctly on the samba share mounted with a
codepage option.

locales on the linux server are all set to English US, ISO8859-1:
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

On the Windows servers, the locale is either "English(United States)" or
"French(Canada)", depending on the server. But in either case I see the same
problems. Also, for all Windows servers, the default language setting is
"Western Europe and United States".

Does anyone have a solution to this problem?  Is there a specific codepage I
am missing to solve this problem?

Denis Poisson
denisp at netc.net
Réseau et Systèmes Informatiques
514.871.1844
450.346.3401



More information about the samba mailing list