Overview
| Artifact ID: | 5b842051d775c3ec747158dbc97a7185b63e84f9 |
|---|---|
| Ticket: | 1438236fffffffffffffffffffffffffffffffff
UNIX vs DOS Slashes |
| User & Date: | nobody on 2006-02-24 17:38:22 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed to:
In the Windows runtime environment, most environment variables are defined with what I'll call dos-like slashes "\". But the TCLLIBPATH environment variable is actually used inside the init.tcl script, and requires unix-like slashes "/". Would it be possible to add this one line: if { [string equal $tcl_platform (platform) "windows"] } { set env(TCLLIBPATH) [string map {\\ \/} $env(TCLLIBPATH)] } And Change ($TCL_ROOT/lib/init.tcl): if {![info exists auto_path]} { if {[info exists env(TCLLIBPATH)]} { set auto_path $env(TCLLIBPATH) } else { set auto_path "" } } To: if {![info exists auto_path]} { if {[info exists env(TCLLIBPATH)]} { if { [string equal $tcl_platform (platform) "windows"] } { set env(TCLLIBPATH) [string map {\\ \/} $env(TCLLIBPATH)] } set auto_path $env(TCLLIBPATH) } else { set auto_path "" } } The will allow "package requires" to succeed no matter how and where the TCLLIBPATH was defined. FYI. My TCLLIBPATH is set within a .bat script and I'm finding it painfully difficult to reverse the direction of the slashes. - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "38. Init - Library - Autoload"
- title changed to: "UNIX vs DOS Slashes"
- type changed to: "RFE"