Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: da27fb23e631214200e5e963abee60e8a9f3705e37a67159baf7e3d76c88b42d
Ticket: 4718b41c56d8c135b018b589c3f031b1262d26c6
windows x86 & x64: file mtime overflows in modification date (2038?, windows 32-bit time_t?)
User & Date: sebres on 2019-07-08 15:26:17
Changes

  1. icomment:
    I meant not the trunk (so your fix was not fulfilled for 8.5 - 8.7)...
    
    Anyway it is fixed now in [ce186ca403] for x64 builds.
    
    And x86 build with 64-bit time_t (newest CRT, I guess >= 8.0) is prevented at the moment by checkin [8a10f0c0ea9da7f7] for [3354324], so it forces this way to use 32-bit time_t (via define _USE_32BIT_TIME_T) regardless CRT can use 64-bit time_t.
    
    May be this "hack" should be removed or we should extend it like here:
    <code><pre>
    <b style="color:red">- #ifndef _WIN64</b>
    <b style="color:green">+ #if !defined(_TIME_T_DEFINED) && !defined(_WIN64) && !defined(__MSVCRT_VERSION__ < 0x0800)</b>
      /* See [Bug 3354324]: file mtime sets wrong time */
      #   define _USE_32BIT_TIME_T
      #endif
    </pre></code>
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"