Skip to content
Tcl Source Code View Ticket
Login

View Ticket

"encoding" cmd broken for threaded apps.

Closed / Fixed221144ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-11-02 20:15:46
Begining with 8.3.1 somebody has changed a way the tclLibraryPath variable is handled. This used to be
a global static in generic/tclEvent.c. As of 8.3.1 
it moved to TSD area, thus being initialized/handled
on a per-thread basis. 
BUT, only the initial thread does get this variable
correctly initialized. All subsequent threads
i.e. interpreters in them, never get a chance to
initialize this variable, thus the encoding 
subsytem cannot locate any character tables.
This means just a built-in tables are available.

This is definitely a bug probably introduced 
by fixing some other bug !
hobbsplain2000-11-30 08:08:56
This is fixed in 8.4a2.  You can back-port the change if you need it for 8.3.2 (10 line patch).
Fix by Gravereaux.
davygrvyplain2000-12-01 07:19:30
see http://sourceforge.net/bugs/?func=detailbug&bug_id=119243&group_id=10894 for the patch.
Log in (anonymous is fine) to add a comment.