Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: db9c4b5c0a5aec0e65b14457f336a519ddf6de57
Ticket: 4a0c163d24549700a25d1e3a47c2c77477b50a25
Win clock locale change not passed to "-locale current"
User & Date: oehhar on 2015-10-23 08:59:58
Changes

  1. assignee changed to: "oehhar"
  2. closedate changed to: "2457318.87498434"
  3. closer changed to: "oehhar"
  4. comment changed to:
    Taking this command:
    <verbatim>
    clock format [clock seconds] -locale system -format %x
    </verbatim>
    On windows, the system encoding is taken from *msgcat::mclocale*.
    If *msgcat::mclocale* changes, the corresponding parse functions are not rebuild.
    
    E.g.:
    <verbatim>
    % mclocale de_de
    % clock format [clock seconds] -locale system -format %x
    01.07.2015
    # mclocale en_us
    % clock format [clock seconds] -locale system -format %x
    01.07.2015
    </verbatim>
    
    On the second call, the parser build at the first invokation is reused and not re-initialized due to the locale change.
    Nevertheless, the used message catalogue should change.
    
    It is not clear to me, if this is an issue.
    I am writing this ticket to eventually not forget it (also by myself).
    
    ----
    
    Addendum to ticket by oehhar:
    
    The upper test is not an issue. The issue arises, if "-locale current" is used.
    Only windows port makes the difference.
    The bug is within format and scan. Details in comments. Due to that, renamed title. Hope this is ok...
    
  5. icomment:
    Fix committed to trunk with [5855bdf4a8].
    Bug closed.
    
  6. login: "oehhar"
  7. mimetype: "text/x-fossil-wiki"
  8. resolution changed to: "Fixed"
  9. status changed to: "Closed"
  10. title changed to:
    Win clock locale change not passed to "-locale current"
    
  11. username: "oehhar"