[Bug 257411] [NEW] mount.cifs ignores iocharset even specified

Pmn teemu.rostela at kolumbus.fi
Tue Aug 12 20:59:16 BST 2008

Public bug reported:

Binary package hint: smbfs

In short: mount.cifs command's option iocharset does have not any effect
on how the filenames in mounted directory are shown.

Somewhat detailed version:
I have a Samba (version 2.2.8a-ja-1.1) serving files for the computers on the network. It is used by Fedora and Windows machines. Now the Fedora computers are being replaced by Ubuntu computers. So far the migration has gone pretty good. 

Now the new Ubuntu machine needs to mount previously mentioned Samba server's share (//file/share) as /pub/documents. And I have tried mount it with:
# /sbin/mount.cifs //file/share /pub/documents -o iocharset=iso8859-1

I can access the files and everything seems to be alright. There are
files on Samba server with umlaut and other iso8859-1 encoded characters
in their filenames. These files are shown as their "special characters"
replaced with question marks.

For example:
file "Työpäivä.txt" is shown as "Ty?p?iv?.txt".

Now I have tried several combinations with mount.cifs .... -o
iocharset=utf8 and ... -o iocharset=cp850 and list goes on and on. There
is not simply any effect on it how filenames with umlaut characters are
shown. Always the question marks... argh.

Some notes:
- Filenames are shown correctly with konqueror browsing Samba share directly (smb://file/share)
- "smbclient //file/share" shows filenames correctly
- Windows XP and the soon-to-be-replaced Fedora (with smbfs) machines do show filenames correctly
- "mount -t cifs -o iocharset=..." has same effect as "mount.cifs -o iocharset=..."

Info about system and package:
Description:    Ubuntu 8.04.1
Release:        8.04
smbfs version 3.0.28a-1ubuntu4

** Affects: samba (Ubuntu)
     Importance: Undecided
         Status: New

mount.cifs ignores iocharset even specified
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

More information about the Ubuntu-server-bugs mailing list