Bug 2007 - linux cifs mounted dirs have problem with utf-8 japanese
Summary: linux cifs mounted dirs have problem with utf-8 japanese
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: user space tools (show other bugs)
Version: 2.6
Hardware: All Linux
: P3 normal
Target Milestone: ---
Assignee: Steve French
QA Contact:
Depends on:
Reported: 2004-11-09 18:36 UTC by Clemens Schwaighofer
Modified: 2005-03-07 21:02 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Clemens Schwaighofer 2004-11-09 18:36:18 UTC
I have a server running debian/testing with samba 3.0.7-debian. My Client is
Gentoo/stable with 3.0.7 debian.

my local LANG is en_US.UTF-8

I have several japanese filenames on the server (they are utf-8 there of
course). If I mount the share with

mount.cifs //fileserver/share share/ -o user=me

then I see just questionmarks.

If I try to mount it it with

mount.cifs //fileserver/share share/ -o user=me,ipcharset=utf8

then I see a long, very long string of questionmarks, blocks, and some very
strange kanji instead of the ver simple japanese filename.

The filename is correctly viewed on the fileserver with the same shell
(gnome-terminal, terminal encoding set to utf-8).

I have no other utf-8 characters like umlauts etc to test, but at least with
japaense its not working ...
Comment 1 Steve French 2005-03-07 21:02:58 UTC
Should be fixed by changes to fs/cifs/file.c and the new file fs/cifs/readdir.c 
which created a new cifs readdir routine which handles utf8 variable length 
characters much better (strings were getting overwritten in some asian 
languages before).  Should be fixed in 2.6.10 or later kernels (patches 
available for some earlier kernels on the project page). 
note that the syntax is iocharset (not ipcharset) but that should not be 
necessary in any case when the server supports unicode (as Samba 3 and Windows