Overview
| Artifact ID: | 9c2e5495c2c2979707669bacf4f64ac42840e450 |
|---|---|
| Ticket: | 217800ffffffffffffffffffffffffffffffffff
Running tclsh81.exe from its build directory doesn't work |
| User & Date: | nobody on 2000-10-26 00:43:51 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
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 - foundin changed to: "obsolete: 8.1b1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Running tclsh81.exe from its build directory doesn't work
- type changed to: "Bug"