Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 76bea04d88233715bca9000b8bfa6314c330c58c
Ticket: 3536888fffffffffffffffffffffffffffffffff
Locale guessing of msgcat fails on (some) Windows 7
User & Date: oehhar on 2012-06-29 19:31:22
Changes

  1. icomment:
    I found, that the table to translate windows lang IDs to locales does sometimes use the modifier, which was not jet on my radar:
    Example:
    43 uz
    0443 uz_UZ@latin
    0843 uz_UZ@cyrillic
    
    I suppose, that this information is contained in the LocaleName "script" part:
    
    I have found:
    http://msdn.microsoft.com/en-us/library/aa226765%28v=sql.80%29.aspx
    which says:
    
    uz-UZ-Cyrl Uzbek (Cyrillic) - Uzbekistan
    uz-UZ-Latn Uzbek (Latin) - Uzbekistan
    
    What puzzels me, is that
    http://tools.ietf.org/html/rfc5646
    uses this format:
    uz-Cyril-UZ Uzbek (Cyrillic) - Uzbekistan
    uz-Latn-UZ Uzbek (Latin) - Uzbekistan
    which is what I have implemented. But I currently ignore the script field.
    
    On my Windows Vista, those keys are not present in the registry:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Rfc1766]
    A modifier is never used.
    
    Well, quite funny all that.
    Richard Suchenwirth would know...
    
    
  2. login: "oehhar"
  3. mimetype: "text/plain"
  4. username: "oehhar"