Skip to content
Tcl Source Code View Ticket
Login

View Ticket

encoding init in dynamic loaded Tcl

Closed / Duplicate540226ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 22 years ago
Descriptionplain2002-04-06 15:46:02
>From "Scott Stanton" <[email protected]>


Starting with 8.1 the encoding directory needs to be
identified very 
early 
in the initialization of the library so we can safely
communicate with 
the 
system.  Currently this is done by finding the
executable and looking 
for 
the Tcl library directory relative to that. 
Unfortunately this doesn't 
work if you are linking Tcl into a DLL that is
dynamically loaded by 
some 
other application (e.g. IIS).  So, we need to rethink
the current 
initialization sequence in light of this alternate
usage scenario and 
come 
up with a better solution.  A related scenario is when
people want to 
use 
Tcl without the script library and just want to create
an interp and use 
it internally.  There are some other initialization
issues related to 
this 
one that we should discuss.
jenglishplain2002-05-23 06:40:01
Logged In: YES 
user_id=68433

This is also an issue for freewrap, tclkit, and the like.

Here the encoding directory is stored in a VFS in the
executable; the application needs to call
Tcl_FindExecutable() to mount the VFS to spcify the encoding
directory, but by then it's too late since
Tcl_FindExecutable() has already set it .
dgpplain2004-07-13 21:24:27
Logged In: YES 
user_id=80530

See Patch 976520
dgpplain2004-12-11 04:01:21
Logged In: YES 
user_id=80530


It think all the real issues left
in the report are the same as
the ones in Bug 579617.

Closing this one as a Duplicate.
dgp Ticket [540226ffff]: 2 changes [History diff]2004-12-11 04:01:22
Log in (anonymous is fine) to add a comment.