Overview
| Artifact ID: | 9a5e6d399bc01488238e4ee4a65693f0387c9b21 |
|---|---|
| Ticket: | 627660ffffffffffffffffffffffffffffffffff
tclPkgUnknown broken in safe interps |
| User & Date: | dgp on 2002-10-23 19:24:38 |
Changes
- assignee changed to: "das"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.4.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "38. Init - Library - Autoload"
- title changed to: "tclPkgUnknown broken in safe interps"
- type changed to: "Bug"