Re: Filsystem Character encoding
Andreas Pakulat wrote:
> On 06.11.05 19:15:41, Michelino Caroselli wrote:
>> Andreas Pakulat wrote:
>>
>> > Leider ist das keine richtige Abhilfe, das hatten wir hier schonmal auf
>> > der Liste. Ich weiss nicht wie das aussieht mit Win<->Samba, aber
>> > Linux<->Samba geht einfach nicht mit Umlauten Punkt. IIRC existieren
>> > auch entsprechende Bugreports.
>>
>> Hmm, also hier tut ein mount.cifs mit iocharset=utf8 und geladenem
>> nls_utf8 Modul auch mit Sonderzeichen (Linux<->Samba;).
>
> Bei der Kombination Windows - Samba nutzt man aber im Normalfall kein
> cifs und mit smbfs:
Es ging zwar weiter oben um Linux<->Linux...
Aber ich kann hier mit beiden (smbfs, cifs) auf Windows- Freigaben
lesend zugreifen (XP SP2, als Admin und lokaler User). Und die Umlaute
bleiben erhalten.
Ich habe noch etwas gespielt (Umbruch nur der Übersicht halber!):
mount -t smbfs //deimos/Daten /shared/local/tmp/mnt
-oiocharset=utf8,codepage=cp850,username=test,
workgroup=deimos,rw,dmask=0777,fmask=0777
und das gleiche auch mit cifs:
mount -t cifs //deimos/Daten /shared/local/tmp/mnt
-oiocharset=utf8,codepage=cp850,user=test,
workgroup=deimos,rw,dir_mode=0777,file_mode=0777
bei cifs können der 'Zeiten' nicht gesetzt(?) werden, aber die Datei
wird regulär angelegt
> andreas@morpheus:/mnt/smb/temp>mount | grep smb
> //localhost/andreas on /mnt/smb type smbfs (rw)
> andreas@morpheus:/mnt/smb/temp>ls -ltr
> -rwxr-xr-x 1 andreas root 0 2005-11-06 19:39 ä
> andreas@morpheus:~/temp>ls -ltr
> -rwxrw-r-- 1 andreas andreas 0 2005-11-06 19:39 ä
> andreas@morpheus:~/temp>locale
> LANG=de_DE.UTF-8
Mit mount -t smbfs:
su - test
test@mars:~$ touch /shared/local/tmp/mnt/ü.txt
test@mars:~$ ls -la /shared/local/tmp/mnt/ü*
-rwxrwxrwx 1 root root 0 2005-11-07 09:53 /shared/local/tmp/mnt/ü.txt
test@mars:~$ locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
...
Wie von Ulrich schon geschrieben: Hast du die entsprechende Codepage
angegeben?
Auf dem Samba-Server
testparm -vs | grep char
...
Loaded services file OK.
dos charset = CP850
unix charset = UTF-8
Und damit es nicht in eine Windows- NG/ Liste geFUPt wird:
Linux<->Linux tut hier ebenfalls mit beiden (mount -t cifs|smbfs)
HTH,
Michel
--
<mdorman> I'm a gnus person myself. It's an editor! It's a floorwax!
It's a dessert topping!
Reply to: