Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9922cdce00926fd7245678ec007547b659eec48d
Ticket: 2001389fffffffffffffffffffffffffffffffff
empty string as path: troubling exceptions
User & Date: dgp on 2008-06-24 03:09:54
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    While digging into the details
    of 1999176, the issue of how an
    empty string ought to be handled
    in a pathname context arises again
    and again.
    
    % file pathtype {}
    relative
    
    This suggests {} is a valid relative
    pathname.  However:
    
    % file normalize {}
    %
    
    Unlike every other relative pathname,
    the normalized form is not an absolute
    pathname.  Any code that assumes the
    value returned from [file normalize]
    or Tcl_FSGetNormalizedPath() is an
    absolute path gets tripped up on this
    exception.
    
    Even worse:
    
    % file system {}
    Unrecognised path
    
    If the empty string is a pathname, it's
    a pathname that belongs to no VFS at all.
    That's just broken.
    
    
    
  4. foundin changed to: "obsolete: 8.6a0"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "36. Pathname Management"
  11. title changed to: "empty string as path: troubling exceptions"
  12. type changed to: "Bug"