Overview
| Artifact ID: | 2a638431073561c3f52781a5516548837cd6db3a |
|---|---|
| Ticket: | 418645ffffffffffffffffffffffffffffffffff
Initial encoding selected incorrectly |
| User & Date: | mkuhn on 2001-11-20 21:51:02 |
Changes
- closedate changed to: "2001-11-20T14:51:02"
- closer changed to: "mkuhn"
- icomment:
Logged In: YES user_id=53799 If you want to have an environment variable to override the default encoding specified in the standard POSIX locale variables, then feel free to introduce and document a proper one for exactly that purpose,e.g. export TCL_DEFAULT_ENCODING=EUC-JP Implementation suggestion: If $TCL_DEFAULT_ENCODING is defined, then nl_langinfo will not be called and TCL behaves as if nl_langinfo had returned TCL_DEFAULT_ENCODING instead. That fixes all problems for users of systems that don't have a locale with the required encoding installed or that don't support nl_langinfo. But please don't overload well-established standardized variables such as LANG, LC_* for any strange hacks. That is messy and dangerous and affects other applications that interpret LANG the standard way. LANG, LC_* have only one single purpose: to name the configuration files that setlocale will load from the disk. If LANG, LC_* have values that are not listed in the output of 'locale -a', then this should cause a warning to be printed and the 'C' locale to be used. Example for a more detailed warning message: "Couldn't set locale directly! I tried to instruct the C run-time system to load localization information (locale definitions) according to the value of the environment variable LC_ALL, LC_CTYPE or LANG (the first of these with a value was used). However this failed. Apparently you specified a locale name there that is not supported by this operating system and therefore I have no idea what default character encoding you would like me to use externally. Please make sure that you specify one of the locale names listed by the command 'locale -a'. See the operating system documentation for details."
- login: "mkuhn"
- mimetype: "text/plain"
- username: "mkuhn"