Skip to content
Tcl Source Code History Of Ticket 3026795fffffffffffffffffffffffffffffffff
Login

History Of Ticket 3026795fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 3026795fffffffffffffffffffffffffffffffff

  1. Ticket change [41fd000c10] (rid 116287) by dunkfan on 2010-07-08 10:47:43:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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 
      
    4. foundin initialized to: "obsolete: 8.5.8"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dunkfan"
    10. subsystem initialized to: "16. Commands A-H"
    11. title initialized to: "clock format %x returns wrong format"
    12. type initialized to: "Bug"
  2. Ticket change [e18446c79f] (rid 87464) by dkf on 2010-07-08 21:48:16:

    1. assignee changed to: "kennykb"
    2. subsystem changed to: "06. Time Measurement"
  3. Ticket change [513226dd2b] (rid 126093) by dkf on 2012-05-30 19:07:07:

    1. resolution changed to: "Remind"
  4. Ticket change [6b3c85eca6] (rid 128284) by kennykb on 2012-05-30 19:41:18:

    1. 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.
      
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. resolution changed to: "None"
    6. username: "kennykb"