Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5b842051d775c3ec747158dbc97a7185b63e84f9
Ticket: 1438236fffffffffffffffffffffffffffffffff
UNIX vs DOS Slashes
User & Date: nobody on 2006-02-24 17:38:22
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
    
  4. foundin changed to: "None"
  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: "38. Init - Library - Autoload"
  10. title changed to: "UNIX vs DOS Slashes"
  11. type changed to: "RFE"