Overview
| Artifact ID: | 3928c0d9774ba187fc5278814be8f2a560c79cdc |
|---|---|
| Ticket: | 438014ffffffffffffffffffffffffffffffffff
unixInit-2.8 failure |
| User & Date: | dgp on 2001-07-03 03:54:38 |
Changes
- icomment:
File Added - 8016: init.patch Logged In: YES user_id=80530 The changes to unixInit-2.8 didn't fully account for the different layout of Tcl's installed directories and Tcl's source distribution directories. That needs correcting. Beyond that, though, making this test fail was actually quite fortunate. Looking into why it failed caused me to look at the search path being generated by TclpInitLibraryPath(). It is just completely wrong, and has been for a long time. The same completely wrong code also is in win/tclWinInit.c. The pathv array of path components is being overwritten and reused several times to construct the directory names to be added to the library path. Unfortunately the pathv array is not reset between each use, but the code assumes it has been. So, instead of constructing several directory names relative to the path to the executable, the first is constructed, the second is constructed relative to the mangled path left by constructing the first, the third relative to the magled path left by the second, etc. The patch corrects all these problems.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"