[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Samba and Codepages question (smbmount)



Hello--

I quick question, to see if anyone could help me out. I have a home
network with two nodes, my laptop and my girlfriend's. I have Debian
sarge on my laptop while on my girlfriend's machine is the Latin
American Spanish version of Windows ME.

I am trying to use Samba tools to allow me to mount her machine's
Windows file shares. I have set up the shares on her machine, and then
am using smbmount to mount them under Debian. I am able to successfully
mount the shares, however the character sets and codepages seem to be
incorrectly configured. Filenames with non-ASCII characters (such as ó
[o acute] and ñ [n tilde]) get garbled.

Local files with Latin-1 characters in their names display fine on my
terminal. So, I believe that my problem has to do with the codepage and
charset settings that I am feeding to smbmount.

In my fstab, I am passing the following options to smbmount:

rw,user,noauto,password=foo,uid=imac,gid=imac,\
iocharset=iso8859-1,codepage=cp437

Now, I believe that the problem is with the last option, "codepage". I
hae tried with codepage=cp437, codepage=cp850, codepage=cp1252, and also
just the raw numbers, i.e. codepage=437, codepage=850 . However, in all
of these cases, the filename charset conversion seems to be wrong.

What code should go here? It appears that newer versions of Windows use
unicode, but WinME should should still use a particular codepage. I just
can't find one that works...

For reference, I am running kernel 2.6.6 and in my .bash_profile I have
the following lines:

set meta-flag on
set output-meta on
set convert-meta off

and in .bashrc I have:

alias ls='ls --show-control-chars'

So, I don't know if there is something missing in terms of my terminal
setup in order to get this to work--or maybe it is a combination of my
terminal and the codepage setup I am feeding smbmount.

Thanks ahead of time for any suggestions. I would really like to get
this working, as the file sharing will be useful in doing backups and
generally...sharing files.

¡Viva Debian!



Reply to: