Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [OT] Filenames with "special" characters (äöü€¶) on SMB share of Linkstation HD-HLAN250
Date: Sun, 06 Nov 2005 10:05:59
Message-Id: 436DD3FC.5050909@mid.email-server.info
1 Hello!
2
3 I've got a Buffalo Linkstation HD-HLAN250. This is a consumer
4 NAS device, which makes the built-in HD accessible via SMB
5 and FTP. On that system, some sort of Linux with some sort
6 of Samba is running.
7
8 I'm now trying to create filenames with special characters (ie.
9 non-ASCII chars) in it. For example "blöder name" (means
10 "stupid name").
11
12 To get access to the share on that NAS device, I added the
13 following line to my local /etc/fstab:
14
15 //HD/share /HD/TEST smbfs
16 noauto,credentials=/local/conf/hd-credentials,uid=guest,gid=users,fmask=0775,dmask=0775,workgroup=EUROPE,rw,lfs,iocharset=utf8,codepage=cp850 0 0
17
18 Now I created a file with name "blöder name" on it:
19
20 $ touch /HD/TEST/blöder\ name
21
22 That filename gets created just fine and Linux sees it just
23 fine:
24
25 $ ls -la /HD/TEST/bl*me
26 -rwxrwxr-x 1 guest users 0 6. Nov 10:46 /HD/TEST/blöder name
27
28 But when I use Windows XP to access the share, the filename is all
29 messed up - it's shown as "blöder name" instead. That's not
30 correct :)
31
32 Also, when I create "blöder name" from Windows, only Windows sees
33 filename intact. Linux ls shows it as:
34
35 $ ls -la /HD/TEST/bl*win*
36 -rwxrwxr-x 1 guest users 0 6. Nov 10:48 /HD/TEST/bl?der windows name
37
38 Note the "?" after "bl" and before "der". That's not correct
39 either :)
40
41 I also tried to mount that share using "cifs" as fs-type instead
42 of smbfs with the following line in /etc/fstab:
43
44 //HD/share /HD/TEST2 cifs
45 noauto,credentials=/local/conf/hd-credentials,uid=guest,gid=users,file_mode=0775,dir_mode=0775,domain=EUROPE,rw,setuids,noperm,mapchars,soft,serverinoi,iocharset=utf8
46 0 0
47
48 But that's even worse... With this, not even Linux can see the
49 special characters fine:
50
51 $ touch /HD/TEST2/blöder\ cifs\ name
52 $ ls -la /HD/TEST2/bl*cifs*name
53 -rwxrwxr-x 1 guest users 0 6. Nov 10:51 /HD/TEST2/bl ?der cifs name
54
55 And in Windows, that name shows up as "bl Âder cifs name". That's
56 also not correct :)
57
58 In the Basic Setup of the LS, I set ISO8859-15 as the character code.
59 I can only chose between some cp codepages (cp850, cp437, ...) and
60 iso8859-1, iso8859-15 and some other ISOs. cp850, iso-8859-1 and
61 iso-8859-15 are the only options relevant for me (ie. I don't care
62 about eg. japanese characters).
63
64 The HD-HLAN only offers SMB and FTP access; ie. no NFS :(
65
66 How do I have to setup everything, so that I can use non-ASCII
67 characters from every OS and that they show up correctly
68 everywhere (ie. a "ö" has to be shown as "ö" everywhere and
69 not as "ö" or " Â")?
70
71 Thanks a lot,
72
73 Alexander Skwar
74 --
75 BOFH Excuse #334:
76
77 50% of the manual is in .pdf readme files
78 --
79 gentoo-user@g.o mailing list

Replies