Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 63d5cfc7094762ef89b80dd310222aa158674de5
Ticket: 504950ffffffffffffffffffffffffffffffffff
SetFsPathFromAny: ~//foo -> /foo
User & Date: vincentdarley on 2002-01-22 17:40:59
Changes

  1. icomment:
    Logged In: YES 
    user_id=32170
    
    My recommendation would be to implement those lines 
    as 'Tcl_FSGetTranslatedPathString', followed by (on 
    Windows) a manual translation of forward slashes to 
    backslashes to yield the desired 'native path name'.
    
    The rest of the Tcl core's C code doesn't really care about 
    the result of the Tcl-level command 'file nativename' (the 
    core uses the caching Tcl_FSGetNativePath), so I think it's 
    ok to do things like this.
    
    An alternative (more complex) would be to add a new Tcl_FS 
    command which returns the relative part of the normalized 
    native path, but that's quite a complex operation.
    
    Daniel Steffen may need to look at how the code handles 
    runs of ':' if there are problems there.
    
    Hope that helps; sorry not to be more actively helpful 
    right now.
    
    
    
    
  2. login: "vincentdarley"
  3. mimetype: "text/plain"
  4. username: "vincentdarley"