Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 96ca4bb81cb7efc44d1e0929538ddb40f453e014
Ticket: 454597ffffffffffffffffffffffffffffffffff
Limited path size
User & Date: vincentdarley on 2001-08-23 22:13:31
Changes

  1. icomment:
    
    
    File Added - 9895: pathlength.tcl
    
    Logged In: YES 
    user_id=32170
    
    It would have been helpful to have a more precise example 
    of the problem, but fortunately it is easyish to 
    reproduce.  The attached script can show at least one bug 
    of this type.  It eventually fails with:
    
    can't create 
    directory "C:/Apps/dir0.8519/dir0.9923/dir0.1220/dir0.6213/d
    ir0.5330/dir0.0420/dir0.7874/dir0.5259/dir0.3268/dir0.1379/d
    ir0.6095/dir0.3286/dir0.3591/dir0.5962/dir0.7668/dir0.2869/d
    ir0.2434/dir0.3738/dir0.8613/dir0.4409/dir0.5180/dir0.5485/d
    ir0.6886/dir0.4262/dir0.1771": file name too long
    % 
    
    Since you seem to know something of the Win32 API's 
    involved here, Sergey, perhaps you can look at the APIs 
    used (they are in tclWin32dll.c, where either some ascii or 
    unicode api's are loaded into a lookup table, from which 
    they are then called in, say, tclWinFCmd.c or tclWinFile.c) 
    and suggest what is wrong with them.  I don't believe Tcl 
    itself has any filename length limitations, so I think the 
    problem could be we are using older Win32 APIs which have 
    such limitations.
    
    
    
  2. login: "vincentdarley"
  3. mimetype: "text/plain"
  4. username: "vincentdarley"