Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9a5e6d399bc01488238e4ee4a65693f0387c9b21
Ticket: 627660ffffffffffffffffffffffffffffffffff
tclPkgUnknown broken in safe interps
User & Date: dgp on 2002-10-23 19:24:38
Changes

  1. assignee changed to: "das"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Tests safe-7.1 and safe-7.2 fail in the Tcl 8.4.1
    distribution
    on Linux.  Here's the essential problem:
    
    % [safe::interpCreate] eval package require http 1
    can't read "::tcl_platform(os)": no such element in array
    % set errorInfo    
    can't read "::tcl_platform(os)": no such element in array
        while executing
    "string equal $::tcl_platform(os) "Darwin""
        (procedure "tclPkgUnknown" line 29)
        invoked from within
    "tclPkgUnknown http 1"
        ("package unknown" script)
        invoked from within
    "package require http 1"
        invoked from within
    "[safe::interpCreate] eval package require http 1"
    
    The variable tcl_platform(os) does not exist in a
    safe interp, so this test needs to have an
    [interp issafe] check to protect it.
    
    das is already working on a patch to take these
    platform-specifc things out of [tclPkgUnknown],
    but the checks in init.tcl that will replace them
    will have a similar need to check for safe interps.
    
  4. foundin changed to: "obsolete: 8.4.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "38. Init - Library - Autoload"
  10. title changed to: "tclPkgUnknown broken in safe interps"
  11. type changed to: "Bug"