Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2222e053b8c4939db005c3f4762f89845fa379a3b2c124fae63c99bdeab65a91
Ticket: 4718b41c56d8c135b018b589c3f031b1262d26c6
windows x86 & x64: file mtime overflows in modification date (2038?, windows 32-bit time_t?)
User & Date: sebres on 2019-07-10 18:30:18
Changes

  1. assignee changed to: "jan.nijtmans"
  2. icomment:
    Branch is rewritten now (see [d263bc472a], this way it is compatible with previous 8.x behavior in 32-bit mode per default).
    
    To enable 64-bit time_t for x86 build:
    <ul>
    <li><b>Visual Studio (nmake):</b>
    
    * either use option time64bit:
    <code><pre style="padding-left:10pt">
    nmake -nologo -f makefile.vc tcltest OPTS=...,time64bit
    </pre></code>
    * or use optimizations (via define _USE_64BIT_TIME_T)
    <code><pre style="padding-left:10pt">
    nmake -nologo -f makefile.vc tcltest OPTS=... OPTIMIZATIONS="-D_USE_64BIT_TIME_T"
    </pre></code>
    </li>
    <li><b>MinGW:</b>
    
    * either via configure:
    <code><pre style="padding-left:10pt">
    ../configure --disable-64bit --enable-time64bit
    </pre></code>
    * or using make via CFLAGS (via define _USE_64BIT_TIME_T)
    <code><pre style="padding-left:10pt">
    make tcltest CFLAGS=-D_USE_64BIT_TIME_T
    </pre></code>
    </li>
    </ul>
    
    Both new tests cmdAH-24.20* in branch are conditional (by constraint time64bit), so in x64-build or in x86-build with enabled time64bit they should pass and in x86-build without time64bit they are ignored:
    
    <pre style="padding-left:10pt"><code>
    .\tcltest ../../tests/all.test -file "cmdAH.test" -match "*-24.20*"
    
    # x64 / x86 with time64bit:
    all.tcl:        Total   305     Passed  2       Skipped 303     Failed  0
    
    # x86 without time64bit:
    all.tcl:        Total   305     Passed  0       Skipped 305     Failed  0
    Sourced 1 Test Files.
    Number of tests skipped for each constraint:
    	2	time64bit
    </code></pre>
    
    
    @Jan I'm done with this now, so if it is good enough, I'd like to merge it in 8.5 and above.<br/>
    If don't, then just close the ticket, I'll then integrate it in my own forks only.
    
  3. login: "sebres"
  4. mimetype: "text/x-fossil-wiki"