sequence about calling handle_client_code_page

monyo at home.monyo.com monyo at home.monyo.com
Thu Dec 23 05:21:10 GMT 1999


>I've found another problem around i18n'ed Samba in latest SAMBA_2_0
>CVS.

This is a quick, dirty patch to solve the problem of calling
handle_client_code_page() sequence partly.
If you modify smb.conf only via SWAT, this patch manages to solve:-|,
but if you modify smb.conf manually, you still need to place "coding
system" and "client codepage" parameter at the top of [global] section 
carefully.

*** loadparm.c.org      Sun Dec 12 15:26:55 1999
--- loadparm.c  Thu Dec 23 14:11:19 1999
***************
*** 536,541 ****
--- 536,543 ----
  static struct parm_struct parm_table[] =
  {
    {"Base Options", P_SEP, P_SEPARATOR},
+   {"coding system",    P_STRING,  P_GLOBAL, &Globals.szCodingSystem,    handle_coding_system, NULL,  0},
+   {"client code page", P_INTEGER, P_GLOBAL, &Globals.client_code_page,       handle_client_code_page,   NULL,  0},
    {"comment",          P_STRING,  P_LOCAL,  &sDefault.comment,          NULL,   NULL,  FLAG_BASIC|FLAG_SHARE|FLAG_PRINT|FLAG_DOS_STRING},
    {"path",             P_STRING,  P_LOCAL,  &sDefault.szPath,           NULL,   NULL,  FLAG_BASIC|FLAG_SHARE|FLAG_PRINT|FLAG_DOS_STRING},
    {"directory",        P_STRING,  P_LOCAL,  &sDefault.szPath,           NULL,   NULL,  FLAG_DOS_STRING},
***************
*** 706,713 ****
    {"strip dot",        P_BOOL,    P_GLOBAL, &Globals.bStripDot,         NULL,   NULL,  0},
    {"character set",    P_STRING,  P_GLOBAL, &Globals.szCharacterSet,    handle_character_set, NULL,  0},
    {"mangled stack",    P_INTEGER, P_GLOBAL, &Globals.mangled_stack,     NULL,   NULL,  0},
-   {"coding system",    P_STRING,  P_GLOBAL, &Globals.szCodingSystem,    handle_coding_system, NULL,  0},
-   {"client code page", P_INTEGER, P_GLOBAL, &Globals.client_code_page,       handle_client_code_page,   NULL,  0},
    {"default case",     P_ENUM, P_LOCAL,  &sDefault.iDefaultCase,        NULL,   enum_case, FLAG_SHARE},
    {"case sensitive",   P_BOOL,    P_LOCAL,  &sDefault.bCaseSensitive,   NULL,   NULL,  FLAG_SHARE|FLAG_GLOBAL},
    {"casesignames",     P_BOOL,    P_LOCAL,  &sDefault.bCaseSensitive,   NULL,   NULL,  0},
--- 708,713 ----

-----
Motonobu TAKAHASHI                    mailto:monyo at samba.gr.jp
Samba Users Group Japan               http://www.samba.gr.jp/






More information about the samba-technical mailing list