Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4ed383219b4054284eee86e2076927ce646aa131
Ticket: 525525ffffffffffffffffffffffffffffffffff
wrong file list in msgcat::mclocale
User & Date: haible on 2002-04-20 09:01:27
Changes

  1. icomment:
    Logged In: YES 
    user_id=5923
    
    I can see three problems in the patch.
    
    1) These question marks should be brackets.
    
         # Assume $value is of form:
    $language?_$territory??.$codeset??@modifier?
         # Convert to form: $language?_$territory??_$modifier?
    
    2) The function ConvertLocale gives an error when the
    argument string contains an @ sign. You can try these tests:
    
    echo [msgcat::ConvertLocale "de"]                   -> de
    echo [msgcat::ConvertLocale "de_DE"]                -> de_DE
    echo [msgcat::ConvertLocale "de.UTF-8"]             -> de
    echo [msgcat::ConvertLocale "de_DE.UTF-8"]          -> de_DE
    echo [msgcat::ConvertLocale "de@bayrisch"]          ->
    de_bayrisch
    echo [msgcat::ConvertLocale "de_DE@bayrisch"]       ->
    de_DE_bayrisch
    echo [msgcat::ConvertLocale "de.UTF-8@bayrisch"]    ->
    de_bayrisch
    echo [msgcat::ConvertLocale "de_DE.UTF-8@bayrisch"] ->
    de_DE_bayrisch
    
    3) [info exists ::env(...)] returns true for an empty
    environment value, right? But ::env("LANG") must be ignored
    if it is set to empty (see bug #525522). Similarly for
    LC_MESSAGES and LC_ALL.
    
    
    
  2. login: "haible"
  3. mimetype: "text/plain"
  4. username: "haible"