Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a03530573a9daa1166b80922e8abf0d27ddb6983
Ticket: 565880ffffffffffffffffffffffffffffffffff
[clock format] doesn't support locales
User & Date: rmax on 2002-06-07 15:59:36
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [clock format] always returns day and month names in
    Engish, although it uses strftime() internally which
    supports locales, but only if the LC_TIME locale
    category has been initialized from the respective
    environment variable(s) before.
    
    I first thought of adding a call to
    setlocale(LC_TIME,"") or setlocsl(LC_ALL, "") to
    unix/tclUnixInit.c, but that would have meant, that a
    script can't change the locale it inherited from it's
    parent process.
    This in turn broke many of the tests in clock.test when
    "make test" was called from within a German locale.
    
    Therefore I added the setlocale(LC_TIME,"") call to
    tclUnixTime.c just before strftime() is being called,
    so that changing env(LC_CTIME) from within a script
    changes gets reflected in [clock format] immediately.
    
    
    
  4. foundin changed to: "obsolete: 8.4a5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "rmax"
  9. subsystem changed to: "None"
  10. title changed to: "[clock format] doesn't support locales"
  11. type changed to: "Bug"