Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TclpSetInitialEncodings doesn't call setlocale

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


Name:
Victor Wagner

Extensions:
none

CustomShell:
none

Comments:
Beta revisions of Tcl8.1 have used setlocale system function for
    determine name of current system encoding. It was removed in
    release version in favor of direct analysis of environment variables.
    But setlocale have significant side effect - it initilizes some
    important internal structures of libc, which are then used by libX11
    to translate keysyms into character codes. Without call of setlocale
    X11R6 with Xkb extension doesn't allow to input cyrillic letters.

ObservedBehavior:
system function setlocale isn't called during Tcl initialization.
    It used to be in beta, but it was removed in release.

DesiredBehavior:
setlocale should be called somewhen at startup, even if its output
    is discarded.



Fixed 5/13/99 by stanton. 
-- 08/08/1999 hobbs
welch Closed ticket [218749ffff]. [History diff]2000-10-26 08:28:13
dgp Ticket [218749ffff]: 1 change [History diff]2001-04-18 06:51:34
dgp Ticket [218749ffff]: 2 changes [History diff]2001-04-18 06:51:35
Log in (anonymous is fine) to add a comment.