Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c5fedf9fbb6b99d1e665aa195c8a19e592b74906
Ticket: 1072136fffffffffffffffffffffffffffffffff
change to tcl_findLibrary breaks freewrap
User & Date: vincentdarley on 2004-11-24 17:13:42
Changes

  1. closedate changed to: "2004-11-24T10:13:42"
  2. closer changed to: "vincentdarley"
  3. icomment:
    Logged In: YES 
    user_id=32170
    
    Under Windows paths starting with '/' are _defined_ to be
    volume relative, therefore Tcl's behaviour is correct. Now
    it could be there's some bug you have found (certainly a
    number of volume-relative bugs have existed in Tcl and many
    have been fixed in the last 12 months).
    
    However, the more general point is that freewrap's use of
    '/tcl' and '/tk' is not correct, and should not have worked
    in the past -- i.e. freewrap relied on Tcl not having
    correct handling of volume relative paths, it seems.
    
    A possible resolution is for freewrap to claim those paths
    as absolute by mounting a new volume, like this:
    
    vfs::filesystem mount -volume /tcl "#not sure what goes here"
    
    (but I see you're not using modern Tcl interfaces).
    
    Then Tcl will not treat that path as volume relative (but I
    would be quite wary of this approach, since it is in some
    sense fundamentally incompatible with the WinTcl
    filesystem).  Better would be to mount a new filesystem:
    freewrap:/ with 'tcl' and 'tk' as subdirectories.
    
    In summary:
    
    * freewrap's use of '/tcl' is relying on bugs in old
    versions of Tcl
    * many volume relative bugs have been fixed, it is possible
    there are more, but Tcl's treatment of '/tcl' as volume
    relative is correct.
    
    Question: does undoing the change in tcl_findLibrary
    actually workaround the problem?  (If so, there is a bug in
    Tcl still, in its usage of the old char-based TclPro hooks,
    if not, then it just shows that volume relative paths are
    now treated correctly).
    
    I hope that helps.  Do feel free to file bugs in Tcl's
    volume-relative file treatment, if any still exist, but
    beyond that this seems to be a freewrap problem, really.
    
    So, don't know what to suggest, except that I don't see us
    making any filesystem changes to accomodate this behaviour.
    Probably using 'freewrap:/' is the best bet.
    
    Vince.
    
    
    
    
    
  4. login: "vincentdarley"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. username: "vincentdarley"