Artifacts Associated With Ticket 3026795fff
Ticket change [41fd000c10] (rid 116287) by dunkfan on 2010-07-08 10:47:43:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In Tcl8.4 on my 32bit Vista Business Machine, clock format [clock seconds] -format "%x" returns: 08/07/2010 - correct European system todays date 8th July 2010 In 8.5 and 8.6 the same code returns 07/08/2010 - US Style with the month first. In 8.5, "clock format [clock seconds] -format "%x" -locale current" gives 08/07/10 which is better...but still not correct as the regional settings are set to output 08/07/2010
- foundin initialized to: "obsolete: 8.5.8"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dunkfan"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "clock format %x returns wrong format"
- type initialized to: "Bug"
Ticket change [e18446c79f] (rid 87464) by dkf on 2010-07-08 21:48:16:
- assignee changed to: "kennykb"
- subsystem changed to: "06. Time Measurement"
Ticket change [513226dd2b] (rid 126093) by dkf on 2012-05-30 19:07:07:
- resolution changed to: "Remind"
Ticket change [6b3c85eca6] (rid 128284) by kennykb on 2012-05-30 19:41:18:
- icomment:
This is actually more of a feature request for '-locale current' (or more likely, '-locale system') to accept the Windows 'regional settings' and construct a [clock] locale from them. This is likely a good idea, but it isn't what Tcl does at present; instead, Tcl sets the locale according to language and variant and uses only the message catalog mechanism. Requiring '-locale' to localise [clock format], with the default being the {} locale, is intentional and by design, so that [clock] by default behaves in a locale-independent manner. Since most outputs of [clock format] are read by programs rather than by human beings, this is a change that fixed more bugs than it introduced. The alternative, requiring '-locale {}' or '-locale C' to get locale-independent behaviour, was even less palatable. - login: "kennykb"
- mimetype: "text/plain"
- priority changed to: "7 High"
- resolution changed to: "None"
- username: "kennykb"
- icomment: