Bug 1047 - Display of share names is OK but files names are wrong
Summary: Display of share names is OK but files names are wrong
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbmount (unmaintained) (show other bugs)
Version: 3.0.1
Hardware: All Linux
: P3 major
Target Milestone: none
Assignee: Jeremy Allison
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-08 08:35 UTC by Andrzej Szelachowski
Modified: 2005-11-14 09:31 UTC (History)
0 users

See Also:


Attachments
screenshoot of WinXP share mounted using smbmount (48.67 KB, image/png)
2004-03-08 03:02 UTC, Andrzej Szelachowski
no flags Details
screenshoot of WinXP share viewed in WinXP (23.71 KB, image/png)
2004-03-08 03:03 UTC, Andrzej Szelachowski
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrzej Szelachowski 2004-02-08 08:35:20 UTC
HI,
I'm using Samba 3.0.1 on Slackware 9.1.
I can access my windows shares (WindowsXP PL) and their names (in Polish) are
displayed correctly but names of files containing Polish letters within Windows
shares are displayed and transferred between Linux and Windows wrongly .

I've added the following lines in smb.conf. in order to have correct shares names:
dos charset = CP852
unix charset = ISO8859-2

CP852 was used with dos and then it was replaced with CP1250, but when I
indicate CP1250 in smb.conf than I CANNOT mouth any share with Polish names
letters and with CP852 I can.

I've done some trial transfers with the settings what I mentioned above and I
can correctly see and transfer files with Polish encoding in their names from
Linux do Windows XP. Shares' names with Polish encoding are also visible and can
be connected to from Windows XP.
So the conclusion is that samba server is OK but there is something wrong with
samba client.

I have the above symptoms using for mounting Smb4K 0.3.2
http://smb4k.berlios.de/

When I connect to XP shares using Simple Samba Commander 0.5
http://www.rafim.prv.pl/smbc/smbc/
the share names with polish letters are displayed wrongly just like files with
polish letters, but I can connect to them and transfer them correctly only from
linux to windows only. Other way round there are problems with encodings in file
names.

best regards

Andrzej
Comment 1 Jeremy Allison 2004-03-04 11:33:21 UTC
CP1250 is not a valid DOS codepage - it's a Windows one.
Only CP852 is used on the wire with old DOS clients.
Leave dos charset at CP852.
Not a Samba bug.
Jeremy.
Comment 2 Andrzej Szelachowski 2004-03-08 03:02:03 UTC
Created attachment 428 [details]
screenshoot of WinXP share mounted using smbmount
Comment 3 Andrzej Szelachowski 2004-03-08 03:03:01 UTC
Created attachment 429 [details]
screenshoot of WinXP share viewed in WinXP
Comment 4 Andrzej Szelachowski 2004-03-08 03:05:03 UTC
Jeremy,
I DO believe that this is a samba bug.
I might have created confusion talking about external programs and maybe this is
smbmount and not smbclient bug, but when I use samba tools the results are the same:
root@Andrzej-Linux:~> smbtree
Password:
SZELACHOWSKI CO
\\ANDRZEJXP Andrzej - Duronik
\\ANDRZEJXP\a±æê³ñ󶼿
\\ANDRZEJXP\wspólny
\\ANDRZEJXP\C$ Domy¶lny udzia³

root@Andrzej-Linux:~> smbmount //ANDRZEJXP/a±æê³ñ󶼿 /root/siec -o
username=andrzej iocharset=iso8859-2 codepage=cp852
Password:

Ive attached 2 screenshoots. One from WindowsXP and one from Linux.

Comment 5 Andrzej Szelachowski 2004-04-11 13:16:31 UTC
My mistake.
I was missing commas within the smbmount command

sorry

Andrzej
Comment 6 Gerald (Jerry) Carter (dead mail address) 2004-04-22 20:17:33 UTC
closing
Comment 7 Gerald (Jerry) Carter (dead mail address) 2005-11-14 09:31:24 UTC
database cleanup