Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f430e47c0d24b70458606d458dd796d906d62fd9
Ticket: 1252475fffffffffffffffffffffffffffffffff
Tcl doesn't properly recognize cp1251 encoding on Solaris
User & Date: vbwagner on 2005-08-05 08:57:06
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Solaris use non-standard name for cp1251 charset.
    nl_langinfo(CODESET) returns ansi-1251 instead of
    CP1251 on most other Unices. It seems that it is only
    locale on Solaris with such a property
    
    Proposed fix is trivial:
    
    --- tclUnixInit.c.orig  2005-08-05 12:55:15.000000000 +0400
    +++ tclUnixInit.c       2005-08-05 12:55:52.000000000 +0400
    @@ -81,6 +81,9 @@
     static CONST LocaleTable localeTable[] = {
     #ifdef HAVE_LANGINFO
         {"gb2312-1980",    "gb2312"},
    +#ifdef __sun
    +       {"ansi-1251", "cp1251"},
    +#endif
     #ifdef __hpux
         {"SJIS",           "shiftjis"},
         {"eucjp",          "euc-jp"},
    
    
  4. foundin changed to: "obsolete: 8.4.11"
  5. priority changed to: "4"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vbwagner"
  9. subsystem changed to: "38. Init - Library - Autoload"
  10. title changed to:
    Tcl doesn't properly recognize cp1251 encoding on Solaris
    
  11. type changed to: "Bug"