TR: File system error (1026) - Win98 FR&EN and extended character s

Jean-Christophe Heger jcheger at edensprings.ch
Sun Apr 15 11:52:13 GMT 2001


This issue might interest you, because it solves filenaming
incompatibilities between Windows (in different languages), and Samba. In
fact, the problem is in Windows, and not in Samba (surprising, isn't it ?
;-)
 
By the way, thanks to you for your documentation, which helped me a lot
resolving this issue.
 
Regards, Christopher
 
 
>>> Original message:


I've found many messages around the "File system error (1026)" in Windows
98, but no one gives any answer. And referring to MS Knowledge base is
unusefull, because this solution is not given on their site (hope it will be
though).
 
This issue is met in countries such as Switzerland (where I am), and many
other European countries, because the translated versions of Windows are
much more bugged than the ENglish one.
 
 
Symptoms
When copying a file with extended characters from a Win98-EN to a Win98-FR,
Win98-EN won't be able to open, rename, copy or delete the file anymore.
This is exactly the same issue between Win98-EN and Samba (Linux), whereas
Win98-FR is working fine.
 
Let's say the file you want to copy is "test-î.txt" from Win98-EN to
Win98-FR or Samba. On the local machine, you have a full access to the file,
but once copied on a remote machine, the file is visible, but when you open
it the file is empty, and you won't be able to rename, recopy or delete it.
Usually a "File system error (1026)" appears when trying to do so.
 
 
Cause
EN version of Windows use a "437" default codepage, but West-European
versions of Windows use a "850" one. So, the files won't be written with the
same charater set. Though, it is logical to use a 850 codepage in Europe,
because all our languages use extended characters.
 
So, there is an undocumented option in Windows about the used codepage, but
you must know that :
 
- Windows use a different codepage than DOS
- The Windows codepage may not be set from the control panel.
 
 
Resolution
In your registry, set you current codepage to 850 (MS-DOS Latin-1, Europe).
For this, browse your registry to:
 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Nls\Codepage
 
Then modify the value of OEMCP from "437" to "850", then restart your
Windows.
After rebooting, you will be able to exchange extended character named files
between different versions of Windows, and Samba.
 
Note for Samba users
Samba must be set for extended character set as well. Default codepage is
850 (fine ;-), but you must specify a specific translation scheme.
 
In smb.conf, use:
character set = ISO8859-1
 
Then, restart Samba.
 
For more information, please refer to Samba documentation.
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list