Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6b3c85eca6cac821b3489eb285562d910f786618
Ticket: 3026795fffffffffffffffffffffffffffffffff
clock format %x returns wrong format
User & Date: kennykb on 2012-05-30 19:41:18
Changes

  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"