Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6ec4e77ebefe4239ac86d7b4326d922d86bb5084f33a8eb508974b682a38461e
Ticket: 4718b41c56d8c135b018b589c3f031b1262d26c6
windows x86 & x64: file mtime overflows in modification date (2038?, windows 32-bit time_t?)
User & Date: sebres on 2019-07-09 06:44:03
Changes

  1. icomment:
    <i>> But ... branch [bug-4718b41c56] causes binary incompatibility</i>
    
    Sure, therefore I wrote that it should be additionally protected by some define, so allow controlling at compile/configure time (and it can be compatible per default). The branch is just an example (or rather PoC).
    
    The alternative would be to use some internal structure instead of Tcl_StatBuf and rewrite internal handling using this and then wrap it in public APIs into Tcl_StatBuf members if the sizes of both structures are different.
    But it is a bit too aggressive in my opinion and a define around could be enough as an opportunity to fix 32-bit builds.
    
    Anyway it is better as to say "cannot fix a Tcl-level command, due to the binary compat purposes"...
    
    <i>> We (= the TCT) promise binary compatibility during the full 8.x release, so any extension compiled against earlier version of the Tcl headers should continue to work in future 8.x version. I'm not prepared to break this promise. Sorry.</i>
    
    OK, you (= the TCT) have an exclusive prerogative to break the compatibility :)<br/>
    Because we (!= the TCT) did see that already too often... ;)
    (and back to the issue) for example the revision [8a10f0c0ea9da7f7] doing almost exactly that for all the 8.x branches and all extensions using tcl-headers together with time_t type (and related like utimebuf, etc), because a definition of _USE_32BIT_TIME_T causes switch of time_t (and several CRT-functions and directives up-to pragma link) to 32-bit.
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"