Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-13
23:11 • Ticket [217815ffff] Missing locale support in Tcl status still Closed with 3... artifact: f57263281c user: dgp
2000-10-26
07:49 • Closed ticket [217815ffff]. artifact: a58b48cd88 user: welch
00:44 • New ticket [217815ffff]. artifact: f7f5a0389b user: nobody

Missing locale support in Tcl

Closed / Duplicate217815ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:44:06
OriginalBugID: 1391 Bug
Version: 8.0.3
SubmitDate: '1999-03-02'
LastModified: '1999-08-07'
Severity: SER
Status: Closed
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 1352 1251
OS: Other
OSVersion: Linux (all versions) BSDI (all versions) Solaris (2.5). Really t
Machine: NA
FixedDate: '2000-10-25'
ClosedDate: '1999-08-07'


Extensions:
not relevant

CustomShell:
not relevant

ReproducibleScript:
string toupper, string tolower. string wordstart and string wordend
commands are affected



ObservedBehavior:
Subcommands of string command which use C function from ctype.h
i.e. string toupper, string tolower, string worstart and
lsort with -dictionary option always use default "C" locale,
instead of current user's locale



DesiredBehavior:
Commands, mentioned above should use current locale settings



Patch:
Add
call of setlocale(LC_ALL,"") at the beginning of Tcl_Main function
Add #include <locale.h> in appropriate place in the beginning of tclMain.c



PatchFiles:
tclMain.c





Workaround, shown above fixes problem with string toupper/tolower,
but doesn't fix problem with lsort -dictionary
welch Closed ticket [217815ffff]. [History diff]2000-10-26 07:49:19
dgp Ticket [217815ffff]: 3 changes [History diff]2001-04-13 23:11:36
Log in (anonymous is fine) to add a comment.