Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1a2ec92d02d5c3432d84bcbb60f9de185a15af75
Ticket: 3288345fffffffffffffffffffffffffffffffff
Wrong Tcl_StatBuf used on MinGW
User & Date: andygoth on 2011-04-17 02:45:09
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "obsolete: 8.6b1.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "andygoth"
  10. subsystem changed to: "37. File System"
  11. title changed to: "Wrong Tcl_StatBuf used on MinGW"
  12. type changed to: "Bug"