Skip to content
Tcl Source Code Artifact [7561d2f75b]
Login

Artifact [7561d2f75b]

Artifact 7561d2f75b8fdb0f64314e3c9b39be3f95cc8067:

Ticket change [7561d2f75b] - Ticket [4a0c163d24549700|4a0c163d24] <i>Win clock locale change not passed to &quot;-locale system&quot;</i> status still Open with 4 other changes by oehhar on 2015-10-21 20:33:40.
D 2015-10-21T20:33:40.756
J icomment For\sthe\slocale\s"system",\s%x\stranslates\sto\sthe\smsgcat\skey\sDATE_FORMAT,\swhich\sis\sset\sby\sthe\sregistry\skey\s"HKEY_CURRENT_USER\\Control\sPanel\\International->sShortDate"\r\n\r\nHere\sis\sthe\sglobal\smap:\r\n\r\n<verbatim>\r\n\s\s\s\slappend\slist\s%EY\s[string\smap\s$list\s[mc\sLOCALE_YEAR_FORMAT]]\r\n\s\s\s\slappend\slist\s%T\s\s[string\smap\s$list\s[mc\sTIME_FORMAT_24_SECS]]\r\n\s\s\s\slappend\slist\s%R\s\s[string\smap\s$list\s[mc\sTIME_FORMAT_24]]\r\n\s\s\s\slappend\slist\s%r\s\s[string\smap\s$list\s[mc\sTIME_FORMAT_12]]\r\n\s\s\s\slappend\slist\s%X\s\s[string\smap\s$list\s[mc\sTIME_FORMAT]]\r\n\s\s\s\slappend\slist\s%EX\s[string\smap\s$list\s[mc\sLOCALE_TIME_FORMAT]]\r\n\s\s\s\slappend\slist\s%x\s\s[string\smap\s$list\s[mc\sDATE_FORMAT]]\r\n\s\s\s\slappend\slist\s%Ex\s[string\smap\s$list\s[mc\sLOCALE_DATE_FORMAT]]\r\n\s\s\s\slappend\slist\s%c\s\s[string\smap\s$list\s[mc\sDATE_TIME_FORMAT]]\r\n\s\s\s\slappend\slist\s%Ec\s[string\smap\s$list\s[mc\sLOCALE_DATE_TIME_FORMAT]]\r\n</verbatim>\r\n\r\nAnd\shere\sis\swhat\sis\sset\sby\sthe\sregistry\s(within\s"HKEY_CURRENT_USER\\Control\sPanel\\International")\s:\r\n\s\s\s*\s\s\sLOCALE_DATE_FORMAT:\ssLongDate\r\n\s\s\s*\s\s\sDATE_FORMAT:\ssShortDate\r\n\s\s\s*\s\s\ssTimeFormat:\ssTimeFormat\r\nThose\sare\sused\sto\scompose:\r\n\s\s\s*\s\s\sDATE_TIME_FORMAT\r\n\s\s\s*\s\s\sLOCALE_DATE_TIME_FORMAT\r\n\r\nBut\sfor\sthe\slocale\scurrent,\sthe\smsgcat\svalue\sis\sused.\r\nThus,\sthe\sobserved\saction\sis\sok,\sbut\sis\snot\sok\sfor\sthe\slocale\scurrent.\r\nOn\sUnix,\s"current"\sand\s"system"\sis\sthe\ssame.\r\n\r\nThus\sthe\sfollowing\sis\sa\sbug:\r\n<verbatim>\r\n%\smclocale\sde_de\r\n%\sclock\sformat\s[clock\sseconds]\s-locale\scurrent\s-format\s%x\r\n01.07.2015\r\n#\smclocale\sen_us\r\n%\sclock\sformat\s[clock\sseconds]\s-locale\scurrent\s-format\s%x\r\n01.07.2015\r\n</verbatim>\r\n\r\nA\sproposed\ssolution\sis\simplemented\sby\sclearing\sthe\sformat\sfunctions\son\sthe\scurrent\slocale\schange\s(for\sthis\slocale)\sin\sbranch\s[bug-4a0c163d24],\scommit\s[e5bf4e6084].
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K 4a0c163d24549700a25d1e3a47c2c77477b50a25
U oehhar
Z ddbea6333151734f437a0888de904cc4