turn off codepages

Ron Alexander rcalex at home.com
Mon May 8 20:27:25 GMT 2000

I am confused (not unusual).

If Samba does NOT support codepages, why is there:
1. code that spews out diagnostics
2. a codepage directory

In other words, can it be somehow configured out?

I just checked the Makefile.in and there are about 10 references to either
the codepage dir, supported codepages or code to do with codepages. NONE of
it is conditional in the Makefile.in.

If as you say "AFAIK no platform that SAMBA runs on supports codepages."
then what do they do to get rid of the diagnostic msgs?

Here is the diagnostic I am talking about.

[2000/05/08 13:54:00, 0] charset.c:(228)
  load_client_codepage: file /system/samba/codepages/codepage.437 is an
incorrect size for a code page file (size=0).

It might seem like a nit, but I know somebody in the user community will
call me at 4:00 in the afternoon. The problem is, they will be in Singapore.


-----Original Message-----
From: samba-technical at samba.org [mailto:samba-technical at samba.org]On
Behalf Of John E. Malmberg
Sent: May 8, 2000 8:21 AM
To: Multiple recipients of list SAMBA-TECHNICAL
Subject: Re: turn off codepages

Ron Alexander <rcalex at home.company> wrote

> Is there any way to 'turn off' the code page logic. The platform I am
> porting to does not have codepages.

AFAIK no platform that SAMBA runs on supports codepages.  I think that they
are a Microsoft Invention.

The codepage routines are for platforms that do not have codepages.  They
are pretty straight forward routines and do not seem have any platform
dependant stuff.

If you do not build the separate codepage compiler, and then compile the
supplied codepages, SAMBA will still work, it may log a diagnostic about
using a default codepage.

The only real change that I am considering for the codepage support on
OpenVMS is changing the translation routine.

The VAX hardware can translated an entire 'C' formated string through the
codepage array with one instruction.  OpenVMS provides access to this
instruction from a Library CALL.

While doing this will speed things up, I would have to perform some tests to
determine if it is significant enough to be worth the effort.

I do not know what other platforms have this type of instruction / library

wb8tyw at qsl.network.
Addresses munged after recent spambot attack.

More information about the samba-technical mailing list