Skip to content
Tcl Source Code History Of Ticket 3354324fffffffffffffffffffffffffffffffff
Login

History Of Ticket 3354324fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 3354324fffffffffffffffffffffffffffffffff

  1. Ticket change [00e75d2a20] (rid 119391) by juergen18 on 2011-07-05 14:50:36:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.5.10"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "juergen18"
    10. subsystem initialized to: "16. Commands A-H"
    11. title initialized to: "Windows: file mtime sets wrong time"
    12. type initialized to: "Bug"
  2. Ticket change [fbb1df78c7] (rid 92111) by juergen18 on 2011-11-17 21:00:27:

    1. icomment:
      The same bug occurs in 8.5.11
      It occurs only when tclsh is compiled on 32-bit Windows.
      The reason is that functions in generic/ pass a 'utimbuf*' with 64-bit-time_t in it to function TclpUptime() in win/tclIOUtil.c, where a 32-bit-time_t is used.
      
      As a hack, remove in generic/tclMain.c:
      -- extern CRTIMPORT int  isatty(int fd);
      
      Add in generic/tclCmdAH.c and in generic/tclIOUtil.c:
      ++ #ifndef _WIN64
      ++ #   define _USE_32BIT_TIME_T
      ++ #endif
      
      A fix should #define _USE_32BIT_TIME_T in a header, makefile.vc or rules.vc.
      
      
    2. login: "juergen18"
    3. mimetype: "text/plain"
    4. username: "juergen18"
  3. Ticket change [6955b412a8] (rid 103229) by dkf on 2011-11-17 21:03:26:

    1. assignee changed to: "andreas_kupries"
    2. subsystem changed to: "36. Pathname Management"
  4. Ticket change [8890a1b797] (rid 131887) by nijtmans on 2011-11-17 21:50:45:

    1. assignee changed to: "nijtmans"
    2. icomment:
      Good analysis! This one was introduced with the fix
      for [Bug 3288345], and only occurs with VS >= 2005.
      The standard build uses MSVC 6.0, so there this
      is no problem.
      
      Will be fixed in next upcoming version.
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Accepted"
    6. username: "nijtmans"
  5. Ticket change [86fc39a042] (rid 131616) by nijtmans on 2011-11-22 15:31:57:

    1. closedate changed to: "2011-11-22T08:31:57"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      Fixed in all open branches
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "nijtmans"