Keith G. Murphy
2002-Jun-21 09:57 UTC
[Samba] Problems with odd characters in filenames on smbmounted Win95 share
I'm having problems with some Win95 files that have things like copyright characters in the filenames. For example, when I try to copy such a file using the name that shows up in the 'ls' listing, I get "file not found". The funky characters get translated to underscores in the listing. Adding 'character set = iso8859-1' to smb.conf does *not* help. I'm using the smbfs that comes with Linux 2.4.18. This problem only started occurring when I upgraded the kernel from 2.2.19, but I don't see any relevant options that could have changed. I have thought of recompiling the kernel with CONFIG_NLS_ISO8859_1, but I have no idea if this will help, especially seeing as how this was not set on the previous kernel either. I'd also love to know how you can tell which codepage the Windows server is actually using, if that question makes sense. Thanks for any ideas.
Keith G. Murphy
2002-Jul-02 09:20 UTC
[Samba] Problems with odd characters in filenames on smbmounted Win95 share
Keith G. Murphy wrote:> I'm having problems with some Win95 files that have things like > copyright characters in the filenames. For example, when I try to copy > such a file using the name that shows up in the 'ls' listing, I get > "file not found". The funky characters get translated to underscores in > the listing. > > Adding 'character set = iso8859-1' to smb.conf does *not* help. > > I'm using the smbfs that comes with Linux 2.4.18. This problem only > started occurring when I upgraded the kernel from 2.2.19, but I don't > see any relevant options that could have changed. >To answer my own question to some degree (for posterity): I think that the characters are getting translated on the Win95 side into Codepage 437 (or something similar), replacing the "out-of-band" characters with underscores, because a Win98 machine looking at the same share sees exactly the same thing and has exactly the same problems as smbfs and smbmount on Linux. That is further supported by the fact that underscores are used, because I think the Samba code uses something else (question marks?). Still not sure why I started seeing this when I did. I first noticed it on backups, so it might have been because of a gzip upgrade (gzip got some more error checking), or something else.> > I'd also love to know how you can tell which codepage the Windows server > is actually using, if that question makes sense. >I'd still like to know this. And even how to change it, if possible...
Reasonably Related Threads
- incomplete smbmount smbfs Win98SE iso8859-1 translation in kernel 2.4.18
- linux 2.2.x and smbmount 2.0.5a: Win95 bugfix?
- charset problem with smbmount
- german umlaute win95 client vs. Linux-Samba file server
- Samba as a client to Windows2000 + special characters on filenames