Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-18
06:53 • Ticket [218750ffff] Number of known locales is too limited status still Clos... artifact: 025b05b21a user: dgp
2000-10-26
08:28 • Closed ticket [218750ffff]. artifact: 2b38f80dc8 user: welch
01:04 • New ticket [218750ffff]. artifact: 7bfc39e208 user: nobody

Number of known locales is too limited

Closed / Fixed218750ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:55
OriginalBugID: 1990 Bug
Version: 8.1
SubmitDate: '1999-05-05'
LastModified: '1999-08-08'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 1988 1989
OS: Linux
Machine: Other
FixedDate: '1999-08-08'
FixedInVersion: 8.1.1
ClosedDate: '2000-10-25'


Name:
Victor Wagner

Comments:
Table localeTable in tclUnixInit.c have a table of known locales.
    These locales cover only few countries with multibyte encodings (Korea,
    Japan and what is zh). All countries which use 8-byte charset other
    than ISOLatin1 are not covered. It is evident that attemt to include
    every possible locale variation would result in huge list. But this
    list can be shortened considerably if there would be some simple
    logic which would extract encoding name from locale name (part after
    dot)
    and attempt to use it as encoding name. (after lowercasing, becouse
    X11 require encoding part to be uppercased)

ObservedBehavior:
Only few japanese and korean locales are recognized. No Russian,
    Greek, Bolgarian, Ukrainian, Polish locales are recognized, while
    these countries don't use ISO8859-1 encoding

DesiredBehavior:
Any locale which contains explicit encoding specification (i.e. encoding
    name after dot) should be recognized if this encoding name is known
    to tcl.



The suggestion of extracting the encoding string from the tail of the locale (e.g. pulling out the SJIS from ja_JP.SJIS) is sound and should be done to expand the number of locales that can automatically be handled.  

05/05/1999 11:31 - stanton -

Fixed 5/13/99 by stanton. 
-- 08/08/1999 hobbs
welch Closed ticket [218750ffff]. [History diff]2000-10-26 08:28:13
dgp Ticket [218750ffff]: 3 changes [History diff]2001-04-18 06:53:56
Log in (anonymous is fine) to add a comment.