Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7dc03aa3f203ee59e908b305ab6b8ec37d80e3d756563be4b6823fa5e1f8bff8
Ticket: ad28319dc2b9ae9da28384c91bf371be50793d8c
winFCmd-6.1, -6.9, 6.13, -9.3 fail on Windows
User & Date: fvogel on 2023-03-08 21:47:19
Changes

  1. closedate changed to: "2460012.40786006"
  2. icomment:
    Quick analysis of the winFCmd-1.24 failure:
    
    - [testfile mv / c:/] calls TclpObjRenameFile with (correct) "/" and "c:/" as string (obj) arguments
    
    - TclpObjRenameFile on Windows is simply:
    
        return DoRenameFile(Tcl_FSGetNativePath(srcPathPtr),
    	    Tcl_FSGetNativePath(destPathPtr));
    
    - The input arguments received by DoRenameFile are (correct or not?)
    
        nativeSrc = \    nativeDst = c
    
    - In DoRenameFile, the call to MoveFileW apparently does not succeed. GetLastError() spits 123 (ERROR_INVALID_NAME), and TclWinConvertError outputs 2 (ENOENT) with this error code.
    
    - DoRenameFile exits at its very end with return TCL_ERROR;
    
    
    Now, whether the error code triggered by MoveFileW was changed or not by Microsoft in Windows 11 is a good question. I don't have any Windows 10 box to check this, can you perhaps?
    
  3. login: "fvogel"
  4. mimetype: "text/plain"