Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 00e75d2a200919d17a020e136a1a7ab266d8354e
Ticket: 3354324fffffffffffffffffffffffffffffffff
Windows: file mtime sets wrong time
User & Date: juergen18 on 2011-07-05 14:50:36
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    "file mtime FILENAME TIMEVALUE" always sets the time to 0 (i.e. 01-01-1970, 00:00) on Windows (XP, Vista, Win7, Windows Server 2003).
    TCL sources have been compiled with VC++9 and VC++10 on Windows Vista and Windows Server 2003.
    OS language is English, file name in basic 8.3 DOS style, file sytem is NTFS.
    The same sources compiled and run on Linux do not show this error.
    "make test"  prints the appropriate error messaage:
    
    ==== cmdAH-24.10 Tcl_FileObjCmd: mtime touch FAILED
    ==== Contents of test case:
    
        waitForEvenSecondForFAT
        set mtime [file mtime $file]
        after 2100; # pause two secs to notice change in mtime on FAT fs'es
        set newmtime [clock seconds]
        set modmtime [file mtime $file $newmtime]
        expr {$newmtime == $modmtime ? 1 : "$newmtime != $modmtime"}
    
    ---- Result was:
    1309876143 != 0
    ---- Result should have been (exact matching):
    1
    ==== cmdAH-24.10 FAILED
    
    
  4. foundin changed to: "obsolete: 8.5.10"
  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: "juergen18"
  10. subsystem changed to: "16. Commands A-H"
  11. title changed to: "Windows: file mtime sets wrong time"
  12. type changed to: "Bug"