Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 67cc80b2c767d273181ea763060590a43335ce77640b42993b037061d0109d6e
Ticket: bf2652aedf42e59076d8f29da8d87b48d83948bb
Tcl 9.1b1 with zipfs support: incorrect value for tcl_library variable
User & Date: anonymous on 2026-09-29 14:21:26
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Today, I compiled the Unix version of Tcl/Tk 9.1b1 with zipfs support (the default). When I tried an old script, it failed on this line:
    
    source [info library]/init.tcl
    
    After some digging, I found that 'info library' was returning an incorrect value. Compare Tcl 9.0 to Tcl 9.1b1, both compiled with zipfs support on the same machine.
    
    % ~/tcltk9.1/bin/wish9.1 
    % echo [info library]
    /Users/rmtrines/tcltk9.1/lib/tcl9
    %
    % ~/tcltk9/bin/wish9.0 
    % echo [info library]
    //zipfs:/lib/tcl/tcl_library
    %
    
    The problem with that: when Tcl 9.1 is compiled and installed with zipfs support, the directory tcltk9.1/lib/tcl9 does not contain the file init.tcl, needed by my script.
    
    When I run this sequence of commands in wish9.1:
    % set tcl_library //zipfs:/lib/tcl/tcl_library
    //zipfs:/lib/tcl/tcl_library
    % info library
    //zipfs:/lib/tcl/tcl_library
    % source [info library]/init.tcl
    % 
    
    Hey, it works fine, no errors. So it's purely the value of tcl_library that is causing the problem.
    
  5. foundin changed to: "Tcl 9.1b1"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "07. Variables"
  14. title changed to:
    Tcl 9.1b1 with zipfs support: incorrect value for tcl_library variable
    
  15. type changed to: "Bug"