Artifacts Associated With Ticket 219281ffffffffff
Ticket change [d66c4f79ac] (rid 123803) by nobody on 2000-10-26 05:09:52:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1908 RFE Version: 8.1b3 SubmitDate: '1999-04-20' LastModified: '2000-10-25' Severity: MED Status: UnAssn Submitter: pat OS: Other Machine: NA FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: Don Porter CVS: $Id: tclInitScript.h,v 1.9 1999/04/16 00:46:47 stanton Exp $$Id: auto.tcl,v 1.2 1999/04/16 00:46:56 stanton Exp $ Comments: The error message might also notify some users that they have TCL_LIBRARY set unknowingly. This might be helpful in tracking down errors that occur when upgrading to a new Tcl/Tk version. DesiredBehavior: When I set the environment variable TCL_LIBRARY, I expect the Tcl library to initialize using the scripts indicated by its value. However, if an error occurs during evaluation of the script $TCL_LIBRARY/init.tcl, the Tcl library silently ignores it and proceeds to initialize using another init.tcl in its search path, never reporting the error. Errors are reported only if no usable init.tcl can be found. This makes it difficult to test an alternative set of initialization scripts. The user is led to believe the alternative scripts are working when they are not. The user has to know to check that [info library] and $env(TCL_LIBRARY) are the same to verify that the alternative scripts are in use. If they are not in use, there was some error, but the error message and stack trace are lost so debugging is complicated. Patch: Index: generic/tclInitScript.h =================================================================== RCS file: /cvsroot/tcl/generic/tclInitScript.h,v retrieving revision 1.9 diff -r1.9 tclInitScript.h 33c33,37 < return\n --- > if {[string length $errors]} {\n > error \"Failed 'init.tcl' evaluation(s):\n\n$errors\"\n > } else {\n > return\n > }\n Index: library/auto.tcl =================================================================== RCS file: /cvsroot/tcl/library/auto.tcl,v retrieving revision 1.2 diff -r1.2 auto.tcl 109c109,113 < return --- > if {[string length $errors]} { > error "Failed '$initScript' evaluation(s):\n\n$errors" > } else { > return > } PatchFiles: tclInitScript.h auto.tcl - foundin initialized to: "obsolete: 8.1b3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to: "Don't silently ignore $env(TCL_LIBRARY)"
- type initialized to: "Bug"
Ticket change [c55cccae39] (rid 111992) by dkf on 2001-01-31 17:34:32:
- subsystem changed to: "38. Init - Library - Autoload"
Ticket change [1527afb343] (rid 124522) by dgp on 2001-02-01 01:30:33:
- icomment:
Registered patch as #103528
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [537791492b] (rid 93762) by dgp on 2001-02-08 13:27:02:
- assignee changed to: "dgp"
Ticket change [f0d4082703] (rid 109258) by dgp on 2008-04-15 04:08:24:
- closedate changed to: "2008-04-14T21:08:24"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: NO init.tcl now tests matching up to the patchlevel, which reduces the chance/severity of this matter.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Out of Date"
- status changed to: "Closed"
- username: "dgp"