<i>Initial encoding selected incorrectly</i> status still Closed with 6 other changes
by
.
D 2001-11-20T21:51:02
J closedate 2001-11-20T14:51:02
J closer mkuhn
J icomment Logged\sIn:\sYES\s\nuser_id=53799\n\nIf\syou\swant\sto\shave\san\senvironment\svariable\sto\soverride\sthe\ndefault\sencoding\sspecified\sin\sthe\sstandard\sPOSIX\slocale\nvariables,\sthen\sfeel\sfree\sto\sintroduce\sand\sdocument\sa\sproper\none\sfor\sexactly\sthat\spurpose,e.g.\n\n\s\sexport\sTCL_DEFAULT_ENCODING=EUC-JP\n\nImplementation\ssuggestion:\n\nIf\s$TCL_DEFAULT_ENCODING\sis\sdefined,\sthen\snl_langinfo\swill\nnot\sbe\scalled\sand\sTCL\sbehaves\sas\sif\snl_langinfo\shad\sreturned\nTCL_DEFAULT_ENCODING\sinstead.\sThat\sfixes\sall\sproblems\sfor\nusers\sof\ssystems\sthat\sdon't\shave\sa\slocale\swith\sthe\srequired\nencoding\sinstalled\sor\sthat\sdon't\ssupport\snl_langinfo.\n\nBut\splease\sdon't\soverload\swell-established\sstandardized\nvariables\ssuch\sas\sLANG,\sLC_*\sfor\sany\sstrange\shacks.\sThat\sis\nmessy\sand\sdangerous\sand\saffects\sother\sapplications\sthat\ninterpret\sLANG\sthe\sstandard\sway.\sLANG,\sLC_*\shave\sonly\sone\nsingle\spurpose:\sto\sname\sthe\sconfiguration\sfiles\sthat\nsetlocale\swill\sload\sfrom\sthe\sdisk.\sIf\sLANG,\sLC_*\shave\svalues\nthat\sare\snot\slisted\sin\sthe\soutput\sof\s'locale\s-a',\sthen\sthis\nshould\scause\sa\swarning\sto\sbe\sprinted\sand\sthe\s'C'\slocale\sto\nbe\sused.\n\nExample\sfor\sa\smore\sdetailed\swarning\smessage:\n\n"Couldn't\sset\slocale\sdirectly!\sI\stried\sto\sinstruct\sthe\sC\nrun-time\ssystem\sto\sload\slocalization\sinformation\s(locale\ndefinitions)\saccording\sto\sthe\svalue\sof\sthe\senvironment\nvariable\sLC_ALL,\sLC_CTYPE\sor\sLANG\s(the\sfirst\sof\sthese\swith\sa\nvalue\swas\sused).\sHowever\sthis\sfailed.\sApparently\syou\nspecified\sa\slocale\sname\sthere\sthat\sis\snot\ssupported\sby\sthis\noperating\ssystem\sand\stherefore\sI\shave\sno\sidea\swhat\sdefault\ncharacter\sencoding\syou\swould\slike\sme\sto\suse\sexternally.\nPlease\smake\ssure\sthat\syou\sspecify\sone\sof\sthe\slocale\snames\nlisted\sby\sthe\scommand\s'locale\s-a'.\sSee\sthe\soperating\ssystem\ndocumentation\sfor\sdetails."\n\n
J login mkuhn
J mimetype text/plain
J username mkuhn
K 418645ffffffffffffffffffffffffffffffffff
U mkuhn
Z c180f0b323a20e69aef1e0c56f631756