Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 116f74a77b3b7e301d3150c3676082e12f7ded470115e96484d546134f60d9b0
Ticket: 2c0f49e26c27847ace39b90258beedea3e79eead
Tcl 9 clock format -locale does not look up locale children if parent locale used first
User & Date: apnadkarni on 2025-03-04 08:07:15
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    Running the following script in Tcl 8.6 and Tcl 9 gives different results, Tcl 8.6 seems correct behavior.
    
    ```
    package require msgcat
    namespace eval ::tcl::clock {
        ::msgcat::mcset fr_xx DATE_FORMAT "%e|%B|%Y"
    }
    puts [package require Tcl]
    puts [clock format 0 -format %x -locale fr]
    puts [clock format 0 -format %x -locale fr_xx]
    
    ```
    
    Output from Tcl 8.6:
    
    ```
    8.6.16
     1 janvier 1970
     1|janvier|1970 <- Note pipe separator
    ```
    
    Output from 9.0.1:
    
    ```
    9.0.1
     1 janvier 1970
     1 janvier 1970 <- fr_xx format seemingly ignored
    ```
    
    If the line for the `fr` locale is commented, Tcl 9 correctly prints the `fr_xx` format.
    
  5. foundin changed to: "9.0.1"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "None"
  15. title changed to:
    Tcl 9 clock format -locale does not look up locale children if parent locale used first
    
  16. type changed to: "Bug"