Overview
| Artifact ID: | 00e75d2a200919d17a020e136a1a7ab266d8354e |
|---|---|
| Ticket: | 3354324fffffffffffffffffffffffffffffffff
Windows: file mtime sets wrong time |
| User & Date: | juergen18 on 2011-07-05 14:50:36 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.5.10"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "juergen18"
- subsystem changed to: "16. Commands A-H"
- title changed to: "Windows: file mtime sets wrong time"
- type changed to: "Bug"