Skip to content
Tcl Source Code History Of Ticket 1493067
Login

History Of Ticket 1493067

Artifacts Associated With Ticket 1493067

  1. Ticket change [f342f53a74] (rid 129678) by eriklns on 2006-05-22 16:45:15:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When using Tcl_FSStat(someTcl_Obj, &statBuf) in a Tcl
      extension compiled with MinGW, loading the extension in
      a stock ActiveTcl tclsh, the file sizes that are in the
      statBuf.size field are plain wrong.
      
      Attached, you find the code for an extension
      (filesize.c -> filesize.dll) defining a new Tcl command
      [filesize]. The results from that command compared to
      the regular [file size] command are:
      
      ActiveTcl8.4.12 tclsh.exe
      
      =========================
      
      % load filesize.dll
      
      % filesize filesize.dll
      
      1000                       <== wrong value
      
      % file size filesize.dll
      
      13933
      
      
      
      As an alternative to the code in filesize.c, which has
      the memory for statBuf allocated automatically, I used
      Tcl_AllocStatBuf() to allocate the memory dynamically.
      This did not make a difference.
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "eriklns"
    9. subsystem initialized to: "None"
    10. title initialized to: "Tcl_FSStat() returns wrong file sizes"
    11. type initialized to: "Bug"
  2. Add attachment "filesize.c" [da9e5e44ce] (rid 107818) by eriklns on 2006-05-22 23:45:17.

  3. Ticket change [a44d509dee] (rid 110187) by eriklns on 2006-05-22 23:45:17:

    1. icomment:
      
      
      File Added - 178896: filesize.c
      
      
      
    2. login: "eriklns"
    3. mimetype: "text/plain"
    4. username: "eriklns"
  4. Ticket change [20c961b367] (rid 130476) by dgp on 2006-05-23 10:33:55:

    1. assignee changed to: "vincentdarley"
    2. foundin changed to: "obsolete: 8.4.12"
    3. subsystem changed to: "37. File System"
  5. Ticket change [1f35be881a] (rid 91107) by vincentdarley on 2006-05-24 03:49:43:

    1. assignee changed to: "mdejong"
    2. title changed to: "Mingw Tcl_FSStat() returns wrong file sizes"
  6. Ticket change [508b3e770a] (rid 125993) by hobbs on 2007-02-09 08:10:59:

    1. closedate changed to: "2007-02-09T01:10:59"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      I believe this is an extension configuration issue.  You have to be careful to get the same stat buf size.  This is a weak link in extension building for extensions that deal with file handling.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Pending"
    8. username: "hobbs"
  7. Ticket change [8174078cea] (rid 117035) by sf-robot on 2007-02-23 10:20:10:

    1. closedate changed to: "2007-02-23T03:20:10"
    2. closer changed to: "sf-robot"
    3. icomment:
      Logged In: YES 
      user_id=1312539
      Originator: NO
      
      This Tracker item was closed automatically by the system. It was
      previously set to a Pending status, and the original submitter
      did not respond within 14 days (the time period specified by
      the administrator of this Tracker).
      
      
    4. login: "sf-robot"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "sf-robot"