Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Add <bindir>/tcl8.1 to library search path

Closed / Fixed218755ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:59
OriginalBugID: 2002 RFE
Version: 8.1
SubmitDate: '1999-05-07'
LastModified: '1999-12-03'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: Windows NT
Machine: X86
FixedDate: '1999-12-03'
FixedInVersion: 8.2
ClosedDate: '2000-10-25'


Name: Petteri Kettunen

Comments:
This modification is specific to our build/runtime environment. We can
    not rely that end-users have set TCL_LIBRARY correctly. Having the
    libraries under <bindir>/tclX.X was the most simple solution that we
    could think. The same applies to Tk, too.

DesiredBehavior:
Add <bindir>/tcl8.1 to library search path.

Patch:
C:\oke\src\tcl>diff tclWinInit.c tclWinInit.c.old
295,306d294
<       if (pathc > 0) {
<           /*
<              *  <bindir>/<installLib>
<              *                (e.g. c:/usr/local/bin/tcl8.1)
<              */
<           sprintf(installLib, "tcl%s", TCL_VERSION);
<           pathv[0] = installLib;
<           path = Tcl_JoinPath(1, pathv, &ds);
<           objPtr = Tcl_NewStringObj(installLib, Tcl_DStringLength(&ds));
<           Tcl_ListObjAppendElement(NULL, pathPtr, objPtr);
<           Tcl_DStringFree(&ds);
<       }

PatchFiles:
win\tclWinInit.c



Tcl already searches in the same directory as the executable
for the DLLs, and 8.2 has an improved search heuristic. 
-- 12/03/1999 hobbs
welch Closed ticket [218755ffff]. [History diff]2000-10-26 08:28:13
dgp Open ticket [218755ffff]. [History diff]2001-04-18 06:58:38
dgp Closed ticket [218755ffff]. [History diff]2001-04-18 06:59:27
Log in (anonymous is fine) to add a comment.