Overview
| Artifact ID: | d3aecb910831194a6e2d517ee565157ec909b546 |
|---|---|
| Ticket: | 418645ffffffffffffffffffffffffffffffffff
Initial encoding selected incorrectly |
| User & Date: | mkuhn on 2001-09-11 17:48:38 |
Changes
- icomment:
Logged In: YES user_id=53799 The odd setlocale(LC_NUMERIC, "C") in my original message should of course be setlocale(LC_CTYPE, ""). [No idea why I typed that ...] I made a little survey of the strings that nl_langinfo(CODESET) returns on different operating systems or that have been proposed as locale name draft standards: Good old 7-bit USASCII comes in the largest number of names: ASCII = US-ASCII = ANSI_X3.4-1968 = 646 = ISO646 = ISO_646.IRV For ISO 8859-1 (and correspondingly the other parts) there are only two notations in use: ISO8859-1 = ISO-8859-1 And then there are also UTF-8 TIS-620 = TIS620.2533 = ISO-8859-12 = ISO8859-12 EUC-JP EUC-KR EUC-TW EUC-CN = GB2312 VSCII GB18030 GBK BIG5 = Big5 KOI8-R KOI8-U WINDOWS-1251 WINDOWS-1256 I think that list covers even more than what you can nl_langinfo(CODESET) expect to return today on any mainstream system. I suggest that the TCL character set conversion functions should be able to accept all of the above character encoding names, and then the output of nl_langinfo(CODESET) can be forwarded directly to the character set conversion routines, such that standard text I/O under TCL happens automatically in the correct locale-dependent character set by default.
- login: "mkuhn"
- mimetype: "text/plain"
- username: "mkuhn"