|
2008-04-15
| ||
| 04:08 | • Closed ticket [219281ffff]: Don't silently ignore $env(TCL_LIBRARY) plus... artifact: f0d4082703 user: dgp | |
|
2001-02-08
| ||
| 13:27 | • Ticket [219281ffff]: 1 change artifact: 537791492b user: dgp | |
|
2001-02-01
| ||
| 01:30 | • Ticket [219281ffff]: 4 changes artifact: 1527afb343 user: dgp | |
|
2001-01-31
| ||
| 17:34 | • Ticket [219281ffff]: 1 change artifact: c55cccae39 user: dkf | |
|
2000-10-26
| ||
| 05:09 | • New ticket [219281ffff]. artifact: d66c4f79ac user: nobody | |
Don't silently ignore $env(TCL_LIBRARY)
Closed / Out of Date219281ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 19 years ago
Descriptionplain2000-10-26 05:09:52
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
dkf Ticket [219281ffff]: 1 change
[History diff]2001-01-31 17:34:32
dgpplain2001-02-01 01:30:33
Registered patch as #103528
dgp Ticket [219281ffff]: 1 change
[History diff]2001-02-08 13:27:02
dgpplain2008-04-15 04:08:24
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.
Log in (anonymous is fine) to add a comment.