Artifacts Associated With Ticket 3288345fffffffffffffffffffffffffffffffff
Ticket change [1a2ec92d02] (rid 122932) by andygoth on 2011-04-17 02:45:09:
- assignee initialized to: "vincentdarley"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.6b1.1"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "andygoth"
- subsystem initialized to: "37. File System"
- title initialized to: "Wrong Tcl_StatBuf used on MinGW"
- type initialized to: "Bug"
Ticket change [7add44187a] (rid 90411) by nijtmans on 2011-04-17 23:16:24:
- assignee changed to: "nijtmans"
- icomment:
I'll have a look
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
Ticket change [b73b572fea] (rid 125549) by nijtmans on 2011-04-18 15:44:17:
- icomment:
Fixed on all open branches.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [5ed486e072] (rid 115700) by nijtmans on 2011-04-18 15:44:18:
- resolution changed to: "Fixed"
Ticket change [9efcb44032] (rid 96567) by nijtmans on 2011-04-21 17:18:43:
- 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?
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [3bfdfb6ede] (rid 112849) by dgp on 2011-04-21 18:03:28:
- 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
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2c61248c16] (rid 118895) by nijtmans on 2011-04-21 19:08:12:
- 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.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [ce3a45e626] (rid 96016) by nijtmans on 2011-10-13 21:31:11:
- closedate changed to: "2011-10-13T14:31:11"
- closer changed to: "nijtmans"
- icomment:
allow_comments - 1
- login: "nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "nijtmans"
Ticket change [b889f1540b] (rid 128982) by nijtmans on 2012-03-14 15:10:38:
- 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)
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Open"
- username: "nijtmans"
- icomment:
Ticket change [b074440701] (rid 97982) by nijtmans on 2012-03-27 19:22:37:
- icomment:
Should finally be fixed now for all branches
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [a53039b4da] (rid 110329) by nijtmans on 2012-03-27 19:22:52:
- closedate changed to: "2012-03-27T12:22:52"
- closer changed to: "nijtmans"
- resolution changed to: "Fixed"
- status changed to: "Closed"