Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 20b3fe2b2b57060f032b7aef4bf17ee6a3a1b4fc
Ticket: 557030ffffffffffffffffffffffffffffffffff
Bug for the zh_CN locale
User & Date: nobody on 2002-05-21 07:44:16
Changes

  1. icomment:
    Logged In: NO 
    
    I tried the above patch with tcl-8.3.3-67 (RH7.3) and it
    seemed to solve the (startup) problem. Thanks.
    
    I may have misstated my problem in my first mail.
    The real problem was that TCL can't start up
    ("Tcl_Init failed: Can't find a usable init.tcl ...")
    with the zh_CN.GB* locales.
    
    Linbo
    
    diff -burN tcl8.3.3.orig/unix/tclUnixInit.c
    tcl8.3.3/unix/tclUnixInit.c
    --- tcl8.3.3.orig/unix/tclUnixInit.c Wed Apr 4 06:54:39 2001
    +++ tcl8.3.3/unix/tclUnixInit.c Mon May 20 20:02:45 2002
    @@ -56,6 +56,7 @@
     } LocaleTable;
     
     static CONST LocaleTable localeTable[] = {
    +    {"chinese",                "cp936"},
         {"ja_JP.SJIS",     "shiftjis"},
         {"ja_JP.EUC",      "euc-jp"},
         {"ja_JP.eucJP",     "euc-jp"},
    @@ -90,6 +91,20 @@
         {"ru_SU",          "iso8859-5"},           
     
         {"zh",             "cp936"},
    +    {"zh_CN",          "cp936"},
    +    {"zh_CN.GB2312",   "cp936"},
    +    {"zh_CN.GBK",      "cp936"},
    +    {"zh_CN.GB18030",  "cp936"},
    +#ifdef hpux
    +    {"zh_CN.hp15CN",   "cp936"},
    +#endif
    +    {"zh_CN.gb2312",   "cp936"},
    +    {"zh_CN.gbk",      "cp936"},
    +    {"zh_CN.gb18030",  "cp936"},
    +    {"zh_HK",          "cp950"},
    +    {"zh_TW",          "cp950"},
    +    {"zh_TW.Big5",     "cp950"},
    +    {"zh_TW.big5",     "cp950"},
     
         {NULL, NULL}
     };
    
    
    
  2. login: "nobody"
  3. mimetype: "text/plain"
  4. username: "nobody"