[Samba] incomplete smbmount smbfs Win98SE iso8859-1 translation in kernel 2.4.18 - SOLVED

Ian! D. Allen idallen at freenet.carleton.ca
Tue Sep 3 23:01:01 GMT 2002


Found the problem - it's a Win98SE codepage registry setting.  Details:

>From: Urban Widmark <urban at teststation.com>  Sep  3, 19:24
>I think I can find the chars it does return in the 437 codepage and the
>ones it doesn't are missing.  http://czyborra.com/charsets/codepages.html
>What I think is happening is that the server must translate the windows
>chars you typed into dos codepage ones before returning them to the
>client, and the ones it can't convert it sets to _.

Yes, that must be what is happening.  I found this document saying where
Win9x stores its code page settings:

http://www.experts-exchange.com/Operating_Systems/Win95_3x/Win95/Q_10053015.html

  > It is registry setting in:
  > HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\Nls\Codepage
  >
  > ACP: your current windows codepage
  > OEMCP: your current DOS codepage

I checked my Win98SE machine and, yes, the OEMCP string was set to "437".
I used regedit to change it to "850", rebooted, and now the smbfs mount
works and all the characters are correctly translated (provided I also
say codepage=cp850 on the mount command line).

>Does the server's autoexec.bat set the codepage to anything?
>Something like:
>
>mode con codepage prepare=((850) C:\WINDOWS\COMMAND\ega.cpi)
>mode con codepage select=850
>
>The installer for swedish win98 always adds those lines.

This doesn't work directly under Win98SE - it says "code page operation
not supported on this device".  I had to add these lines to my CONFIG.SYS
file (not all these may be needed; I'm copying from elswehre):

    devicehigh=\windows\command\display.sys con=(ega,,1)
    country=004,850,\windows\command\country.sys
    devicehigh=\windows\command\ansi.sys

With those lines added, the MODE lines work without errors; but, they
don't change the codepage in the Windows registry and the mount and
display are missing characters, as before.  Only editing the registry
works.  Do you know how to get that registry entry to change without
running regedit?



More information about the samba mailing list