Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 24ceb700bf1e5846c139c231d403cfd22dc1e36692b66c39b6fa3fc375481540
Ticket: 2c0f49e26c27847ace39b90258beedea3e79eead
Tcl 9 clock format -locale does not look up locale children if parent locale used first
User & Date: sebres on 2025-03-04 15:04:38
Changes

  1. icomment:
    Good catch, Ashok!
    
    The reason for that is that new clock-engine caching the msgcat dictionary internally in merged catalog (from parent to child locale), but more important here is that "%x" is so called "localized" format (since it expanding in `::tcl::clock::LocalizeFormat`) and its result becomes also cached in merged catalog with keys `FMT_*` (here by `FMT_%x`), but (because it is not overwritten), the value remains as the value from parent catalog (after merge in `::tcl::clock::mcMerge`).
    
    The fix is simple, so I'll fix it now (and cover by a test).
    
  2. login: "sebres"
  3. mimetype: "text/x-markdown"