Artifacts Associated With Ticket 832657ffffffffffffffffffffffffffffffffff
Ticket change [084d81f455] (rid 89541) by dgp on 2003-10-29 20:46:01:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When constructing paths from the executable name, the special meaning of /../ in a path name is not honored. For example, if you do a fresh build of Tcl and Tk in their unix directories, respectively, then cd to tk8.4.5/win and run $ ../unix/wish Application initialization failed: Can't find a usable init.tcl in the following directories: /usr/local/lib/tcl8.4 /local/src/tk8.4/win/../lib/tcl8.4 /local/src/tk8.4/win/lib/tcl8.4 /local/src/tk8.4/win/../library /local/src/tk8.4/win/library /local/src/tk8.4/win/tcl8.4.5/library /local/src/tk8.4/tcl8.4.5/library /usr/local/lib/tcl8.4 This probably means that Tcl wasn't installed properly. Note that the third to last path in the search list is the one that should succeed, if the original path were normalized before processing. Fixing this means either correcting all three TclpInitLibraryPath routines, or normalizing the path before calling (only one caller). - foundin initialized to: "obsolete: 8.4.5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "38. Init - Library - Autoload"
- title initialized to: "TclpInitLibraryPath fails for path containing .."
- type initialized to: "Bug"
Ticket change [5ed11284ad] (rid 115695) by dgp on 2003-10-30 05:43:27:
- assignee changed to: "vincentdarley"
- icomment:
Logged In: YES user_id=80530 Here's a patch against core-8-4-branch that corrects the problem and passes all existing tests. Needs review for potential problems.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "dgp"
Ticket change [fb5034b9ae] (rid 92037) by dgp on 2003-10-30 05:43:28:
- icomment:
File Added - 65872: 832657.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1e8a1c8eb4] (rid 90995) by vincentdarley on 2003-10-30 19:46:34:
- icomment:
Logged In: YES user_id=32170 The patch (being quite simple) is clearly ok. I don't have time today, however, to be able to analyse what repercussions this might have. Overall I think it can only be a good idea if the executable path is normalized. On the other hand one could argue that the TclpInitLibraryPath routines are clearly doing the "wrong thing" here, and that ought to be fixed anyway.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [afc9b2631e] (rid 97873) by dgp on 2003-10-30 22:49:34:
- assignee changed to: "dgp"
Ticket change [190006b64d] (rid 122748) by dgp on 2003-11-06 03:54:18:
- icomment:
Logged In: YES user_id=80530 patch + new test applied for Tcl 8.4.5. Test only applied for HEAD, pending better fix of the individual TclpInitLibraryPath routines (each should be updated to use more modern Tcl_FS* routines for manipulating paths)
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "4"
- username: "dgp"
- icomment:
Ticket change [050c93d358] (rid 88982) by hobbs on 2003-11-07 04:43:21:
- icomment:
Logged In: YES user_id=72656 Patch removed from 8.4 as it broke Windows flat out. You can't use the Tcl_FS functions at that point safely. The init is a very fragile place for what requires what.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [135141dde3] (rid 124193) by dgp on 2003-11-07 06:10:24:
- priority changed to: "8"
Ticket change [6cd2edbe9d] (rid 128588) by dgp on 2003-11-10 23:54:30:
- icomment:
Logged In: YES user_id=80530 Here's a unix-only patch using a strategy that should be safe.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [626a0ee55d] (rid 92402) by dgp on 2003-11-10 23:54:31:
- icomment:
File Deleted - 65872: File Added - 67036: 832657.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e3226eefa5] (rid 87741) by dgp on 2003-11-11 00:47:33:
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=80530 Updated patch includes fix for windows too. Seems the mac version needs no changes. Note that the win and unix code are largely the same; would be a good idea to factor out the common stuff into some generic routine.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
Ticket change [d964958d78] (rid 107605) by dgp on 2003-11-11 00:47:34:
- icomment:
File Deleted - 67036: File Added - 67041: 832657.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [bf9fe14d35] (rid 102277) by dgp on 2003-11-11 02:25:28:
- icomment:
File Added - 67058: 832657.patch Logged In: YES user_id=80530 Here's a simpler patch more narrowly focused.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "832657.patch" [43b6c0d562] (rid 116607) by dgp on 2003-11-11 02:25:28.
Ticket change [55baa02e22] (rid 94199) by dgp on 2003-11-11 02:25:29:
- icomment:
File Deleted - 67041:
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6de294de5e] (rid 128780) by dgp on 2003-11-11 03:34:32:
- assignee changed to: "dgp"
- closedate changed to: "2003-11-10T20:34:32"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 latest patch committed to HEAD and core-8-4-branch for 8.4.5+.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"