Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-13
22:56 • Ticket [217800ffff] Running tclsh81.exe from its build directory doesn't wor... artifact: 046df7ac25 user: dgp
2000-10-26
07:49 • Closed ticket [217800ffff]. artifact: 6508bff63f user: welch
00:43 • New ticket [217800ffff]. artifact: 9c2e5495c2 user: nobody

Running tclsh81.exe from its build directory doesn't work

Closed / Duplicate217800ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:43:51
OriginalBugID: 989 Bug
Version: 8.1b1
SubmitDate: '1998-12-17'
LastModified: '1999-01-15'
Severity: LOW
Status: Closed
Submitter: pat
ChangedBy: pat
RelatedBugIDs: 976
OS: Windows NT
OSVersion: 4.0SP3
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-01-15'


Name:

Jan Nijtmans



ReproducibleScript:

When running tclsh81.exe from the command line, I get:

    Can't find a usable init.tcl in the following directories:

     ...........

    This probably means that Tcl wasn't installed properly.









ObservedBehavior:

The "[info nameofexecutable]/../../library" is not among the

listed directories. This but was also reported for Tcl8.0.3

and solved in Tcl8.0.4, so I would be logical to solve it the

same way now.







Patch:

First, copy the "tclInitScript.h" file from tcl8.0.4. That still doesn't solve

the problem, because the variable $tclDefaultLibrary doesn't exist.

As a temporary workaround, I did:

*** tclWinInit.c.origWed Nov 11 05:09:19 1998

--- tclWinInit.cMon Dec 14 17:27:42 1998

***************

*** 554,559 ****

--- 554,560 ----

  }

  Tcl_DStringFree(&ds);

      }

+     Tcl_SetVar(interp, "tclDefaultLibrary", "", TCL_GLOBAL_ONLY);

  }

  

  /*









PatchFiles:

tclInitScript.h tclWinInit.c









The patch for tclWinInit.c just sets the tclDefaultLibrary variable to the
empty string, but in fact it should be retrieved from the registry in
the same way as Tcl8.0.4.
tclUnixInit.c should be modified to set the tclDefaultLibrary variable as well.

01/15/1999 11:57 - pat - closed as a duplicate of bug 976
welch Closed ticket [217800ffff]. [History diff]2000-10-26 07:49:18
dgp Ticket [217800ffff]: 3 changes [History diff]2001-04-13 22:56:48
Log in (anonymous is fine) to add a comment.