Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d66c4f79ac8fdb3d2ecc2dc78d6d054c796cc10f
Ticket: 219281ffffffffffffffffffffffffffffffffff
Don't silently ignore $env(TCL_LIBRARY)
User & Date: nobody on 2000-10-26 05:09:52
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.1b3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "Don't silently ignore $env(TCL_LIBRARY)"
  11. type changed to: "Bug"