Skip to content
Tcl Source Code History Of Ticket 3288345
Login

History Of Ticket 3288345

Artifacts Associated With Ticket 3288345

  1. Ticket change [1a2ec92d02] (rid 122932) by andygoth on 2011-04-17 02:45:09:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      On MinGW, tcl.h typedefs Tcl_StatBuf to be struct stat, which contains a 32-bit st_size.  A 64-bit st_size is assumed by tclWinFile.c.  This results in incorrect [file size], etc., for 2+ gigabyte files.  struct _stati64 should be used instead.  I made this change in my local Tcl source tree and recompiled, and [file size] now works correctly.
      
      See /mingw/include/sys/stat.h for the family of stat structs and the circumstances under which each is available.
      
      This is on a 32-bit Windows XP machine.
      
    4. foundin initialized to: "obsolete: 8.6b1.1"
    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: "andygoth"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "Wrong Tcl_StatBuf used on MinGW"
    12. type initialized to: "Bug"
  2. Ticket change [7add44187a] (rid 90411) by nijtmans on 2011-04-17 23:16:24:

    1. assignee changed to: "nijtmans"
    2. icomment:
      I'll have a look
      
      
    3. login: "nijtmans"
    4. mimetype: "text/plain"
    5. username: "nijtmans"
  3. Ticket change [b73b572fea] (rid 125549) by nijtmans on 2011-04-18 15:44:17:

    1. icomment:
      Fixed on all open branches.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  4. Ticket change [5ed486e072] (rid 115700) by nijtmans on 2011-04-18 15:44:18:

    1. resolution changed to: "Fixed"
  5. Ticket change [9efcb44032] (rid 96567) by nijtmans on 2011-04-21 17:18:43:

    1. icomment:
      _stati64 uses either a 32-bit time_t, either a 64-bit time_t depending
      on _USE_32BIT_TIME_T, while MSVC6 always uses a 32-bit
      time_t. So, in order to keep binary compatibility on all platforms,
      we should use _stat32i64 whenever this is available (VS2005+)
      
      Problem: not all mingw versions have already taken this
      over from VS2005, so in case encountering an old mingw
      version, we should provide our own version in tclWinPort.h.
      
      For VS2005+, this means a binary API change, because
      starting with this version the time_t type suddenly starts
      to be 64-bit, unless we define _USE_32BIT_TIME_T.
      
      Pat Thoyts, Any remarks? 
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  6. Ticket change [3bfdfb6ede] (rid 112849) by dgp on 2011-04-21 18:03:28:

    1. icomment:
      
      I think these are new warnings from tclTest.c
      building Tcl 8.4 tip .  Related to these changes?
      
      /home/dgp/fossil/tcl8.4/unix/../generic/tclTest.c: In function ‘TeststatprocCmd’:
      /home/dgp/fossil/tcl8.4/unix/../generic/tclTest.c:4660: warning: assignment from incompatible pointer type
      /home/dgp/fossil/tcl8.4/unix/../generic/tclTest.c:4662: warning: assignment from incompatible pointer type
      /home/dgp/fossil/tcl8.4/unix/../generic/tclTest.c:4664: warning: assignment from incompatible pointer type
      /home/dgp/fossil/tcl8.4/unix/../generic/tclTest.c:4666: warning: assignment from incompatible pointer type
      /home/dgp/fossil/tcl8.4/unix/../generic/tclTest.c:4676: warning: comparison of distinct pointer types lacks a cast
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [2c61248c16] (rid 118895) by nijtmans on 2011-04-21 19:08:12:

    1. icomment:
      >I think these are new warnings from tclTest.c
      >building Tcl 8.4 tip . Related to these changes?
      
      Yes, it was related. Should be fixed now.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  8. Ticket change [ce3a45e626] (rid 96016) by nijtmans on 2011-10-13 21:31:11:

    1. closedate changed to: "2011-10-13T14:31:11"
    2. closer changed to: "nijtmans"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "nijtmans"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "nijtmans"
  9. Ticket change [b889f1540b] (rid 128982) by nijtmans on 2012-03-14 15:10:38:

    1. icomment:
      
      
      allow_comments - 0
      
      Re-opening. Reason: cygwin switched from using
      the /win directory for its build to the /unix
      directory, but then also starts to use the
      unix stat64 structure. cygwin tclsh can load
      and run Tcl extensions compiled with mingw,
      but those use a different struct for Tcl_StatBuf.
      So the problem described here re-appeard
      for cygwin ;-(
      
      Solution: make a special Tcl_StatBuf for
      cygwin's unix build only, which has
      exactly the same structure as _stat32i64
      (copy this from tclWinPort.h to tcl.h)
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. resolution changed to: "Accepted"
    5. status changed to: "Open"
    6. username: "nijtmans"
  10. Ticket change [b074440701] (rid 97982) by nijtmans on 2012-03-27 19:22:37:

    1. icomment:
      Should finally be fixed now for all branches
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  11. Ticket change [a53039b4da] (rid 110329) by nijtmans on 2012-03-27 19:22:52:

    1. closedate changed to: "2012-03-27T12:22:52"
    2. closer changed to: "nijtmans"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"