|
2007-02-23
| ||
| 10:20 | • Closed ticket [1493067fff]: Mingw Tcl_FSStat() returns wrong file sizes plus... artifact: 8174078cea user: sf-robot | |
|
2007-02-09
| ||
| 08:10 | • Pending ticket [1493067fff]. artifact: 508b3e770a user: hobbs | |
|
2006-05-24
| ||
| 03:49 | • Ticket [1493067fff]: 2 changes artifact: 1f35be881a user: vincentdarley | |
|
2006-05-23
| ||
| 10:33 | • Ticket [1493067fff]: 3 changes artifact: 20c961b367 user: dgp | |
|
2006-05-22
| ||
| 23:45 | • Add attachment filesize.c to ticket [1493067fff] artifact: da9e5e44ce user: eriklns | |
| 23:45 | • Ticket [1493067fff] Tcl_FSStat() returns wrong file sizes status still Open ... artifact: a44d509dee user: eriklns | |
| 16:45 | • New ticket [1493067fff]. artifact: f342f53a74 user: eriklns | |
Mingw Tcl_FSStat() returns wrong file sizes
Closed / Wont Fix1493067fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 20 years ago
Descriptionplain2006-05-22 16:45:15
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.
eriklnsplain2006-05-22 23:45:17
File Added - 178896: filesize.c
dgp Ticket [1493067fff]: 3 changes
[History diff]2006-05-23 10:33:55
vincentdarley Ticket [1493067fff]: 2 changes
[History diff]2006-05-24 03:49:43
hobbsplain2007-02-09 08:10:59
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.
sf-robotplain2007-02-23 10:20:10
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).
Log in (anonymous is fine) to add a comment.
Attachments:
- filesize.c [download] added by eriklns on 2006-05-22 23:45:17. [details]