Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fbb1df78c7f7f463469d6cc687bd53907bb3e783
Ticket: 3354324fffffffffffffffffffffffffffffffff
Windows: file mtime sets wrong time
User & Date: juergen18 on 2011-11-17 21:00:27
Changes

  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"