.
D 2002-06-07T15:59:36
J assignee nobody
J cmimetype text/plain
J comment [clock\sformat]\salways\sreturns\sday\sand\smonth\snames\sin\nEngish,\salthough\sit\suses\sstrftime()\sinternally\swhich\nsupports\slocales,\sbut\sonly\sif\sthe\sLC_TIME\slocale\ncategory\shas\sbeen\sinitialized\sfrom\sthe\srespective\nenvironment\svariable(s)\sbefore.\n\nI\sfirst\sthought\sof\sadding\sa\scall\sto\nsetlocale(LC_TIME,"")\sor\ssetlocsl(LC_ALL,\s"")\sto\nunix/tclUnixInit.c,\sbut\sthat\swould\shave\smeant,\sthat\sa\nscript\scan't\schange\sthe\slocale\sit\sinherited\sfrom\sit's\nparent\sprocess.\nThis\sin\sturn\sbroke\smany\sof\sthe\stests\sin\sclock.test\swhen\n"make\stest"\swas\scalled\sfrom\swithin\sa\sGerman\slocale.\n\nTherefore\sI\sadded\sthe\ssetlocale(LC_TIME,"")\scall\sto\ntclUnixTime.c\sjust\sbefore\sstrftime()\sis\sbeing\scalled,\nso\sthat\schanging\senv(LC_CTIME)\sfrom\swithin\sa\sscript\nchanges\sgets\sreflected\sin\s[clock\sformat]\simmediately.\n\n
J foundin obsolete:\s8.4a5
J priority 5\sMedium
J resolution None
J status Open
J submitter rmax
J subsystem None
J title [clock\sformat]\sdoesn't\ssupport\slocales
J type Bug
K 565880ffffffffffffffffffffffffffffffffff
U rmax
Z d22496dbe6bc3e7075332069af6155c1