Artifacts Associated With Ticket 1252475
Ticket change [f430e47c0d] (rid 129865) by vbwagner on 2005-08-05 08:57:06:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized 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"}, - foundin initialized to: "obsolete: 8.4.11"
- priority initialized to: "4"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vbwagner"
- subsystem initialized to: "38. Init - Library - Autoload"
- title initialized to:
Tcl doesn't properly recognize cp1251 encoding on Solaris
- type initialized to: "Bug"
Ticket change [ac1023680b] (rid 101231) by dgp on 2005-08-06 02:40:10:
- icomment:
Logged In: YES user_id=80530 Are the #ifdef's important? Any reason to restrict this encoding alias to only Sun (-compiled) systems?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [685d342364] (rid 103053) by vbwagner on 2005-08-06 03:21:59:
- icomment:
Logged In: YES user_id=757679 Probably #ifdef can be safely omitted. I cannot imagine a system, where ansi-1251 means something other than cp1251. But same applies to hpux-specific SJIS, eucjp etc, which are hidden under #ifdef __hpux. I've just modelled my patch after existing __hpux specific code.
- login: "vbwagner"
- mimetype: "text/plain"
- username: "vbwagner"
- icomment:
Ticket change [bfeba54fb0] (rid 102327) by dkf on 2005-08-06 03:48:35:
- closedate changed to: "2005-08-05T20:48:35"
- closer changed to: "dkf"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [3e54ec80b7] (rid 121244) by dkf on 2005-08-06 04:01:45:
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 I've fixed this (sans #ifdefs) on HEAD and 8.4 branch. Dratted vendors.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"