Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4f2873c094a8d92c1d417dfec4f959a67363f921
Ticket: 525522ffffffffffffffffffffffffffffffffff
Tcl msgcat ignores LC_ALL
User & Date: haible on 2002-03-04 14:30:38
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The Tcl msgcat facility doesn't respect POSIX, by
    looking only at LANG
    and ignoring LC_MESSAGES and LC_ALL. Everywhere in
    POSIX, LC_ALL
    overrides LANG when set. But tcl ignores it. Thus, i18n
    for Tcl
    programs doesn't print messages in the same language as
    other
    applications do, if the user has set only LC_ALL and/or
    LC_MESSAGES
    but not LANG.
    
    Description of LANG, LC_MESSAGES, LC_ALL:
    
    LANG
    
    This variable shall determine the locale category for
    native language,
    local customs, and coded character set in the absence
    of the LC_ALL
    and other LC_* ( LC_COLLATE , LC_CTYPE , LC_MESSAGES ,
    LC_MONETARY ,
    LC_NUMERIC , LC_TIME ) environment variables. This can
    be used by
    applications to determine the language to use for error
    messages and
    instructions, collating sequences, date formats, and so
    on.
    
    LC_MESSAGES
    
    This variable shall determine the locale category for
    processing
    affirmative and negative responses and the language and
    cultural
    conventions in which messages should be written.
    Additional semantics
    of this variable, if any, are implementation-defined.
    The language and
    cultural conventions of diagnostic and informative
    messages whose
    format is unspecified by IEEE Std 1003.1-2001 should be
    affected by
    the setting of LC_MESSAGES .
    
    LC_ALL
    
    This variable shall determine the values for all locale
    categories. The value of the LC_ALL environment
    variable has
    precedence over any of the other environment variables
    starting with
    LC_ ( LC_COLLATE , LC_CTYPE , LC_MESSAGES , LC_MONETARY
    , LC_NUMERIC ,
    LC_TIME ) and the LANG environment variable.
    
    Furthermore please note that in this context, an
    environment variable
    whose value is empty is treated like if it were unset.
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "haible"
  9. subsystem changed to: "30. msgcat Package"
  10. title changed to: "Tcl msgcat ignores LC_ALL"
  11. type changed to: "Bug"