Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9c2e5495c2c2979707669bacf4f64ac42840e450
Ticket: 217800ffffffffffffffffffffffffffffffffff
Running tclsh81.exe from its build directory doesn't work
User & Date: nobody on 2000-10-26 00:43:51
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 989 Bug
    Version: 8.1b1
    SubmitDate: '1998-12-17'
    LastModified: '1999-01-15'
    Severity: LOW
    Status: Closed
    Submitter: pat
    ChangedBy: pat
    RelatedBugIDs: 976
    OS: Windows NT
    OSVersion: 4.0SP3
    Machine: X86
    FixedDate: '2000-10-25'
    ClosedDate: '1999-01-15'
    
    
    Name:
    
    Jan Nijtmans
    
    
    
    ReproducibleScript:
    
    When running tclsh81.exe from the command line, I get:
    
        Can't find a usable init.tcl in the following directories:
    
         ...........
    
        This probably means that Tcl wasn't installed properly.
    
    
    
    
    
    
    
    
    
    ObservedBehavior:
    
    The "[info nameofexecutable]/../../library" is not among the
    
    listed directories. This but was also reported for Tcl8.0.3
    
    and solved in Tcl8.0.4, so I would be logical to solve it the
    
    same way now.
    
    
    
    
    
    
    
    Patch:
    
    First, copy the "tclInitScript.h" file from tcl8.0.4. That still doesn't solve
    
    the problem, because the variable $tclDefaultLibrary doesn't exist.
    
    As a temporary workaround, I did:
    
    *** tclWinInit.c.origWed Nov 11 05:09:19 1998
    
    --- tclWinInit.cMon Dec 14 17:27:42 1998
    
    ***************
    
    *** 554,559 ****
    
    --- 554,560 ----
    
      }
    
      Tcl_DStringFree(&ds);
    
          }
    
    +     Tcl_SetVar(interp, "tclDefaultLibrary", "", TCL_GLOBAL_ONLY);
    
      }
    
      
    
      /*
    
    
    
    
    
    
    
    
    
    PatchFiles:
    
    tclInitScript.h tclWinInit.c
    
    
    
    
    
    
    
    
    
    The patch for tclWinInit.c just sets the tclDefaultLibrary variable to the
    empty string, but in fact it should be retrieved from the registry in
    the same way as Tcl8.0.4.
    tclUnixInit.c should be modified to set the tclDefaultLibrary variable as well.
    
    01/15/1999 11:57 - pat - closed as a duplicate of bug 976
    
  4. foundin changed to: "obsolete: 8.1b1"
  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:
    Running tclsh81.exe from its build directory doesn't work
    
  11. type changed to: "Bug"