[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-10-17 Thread STINNER Victor
STINNER Victor added the comment: changeset: 72869:32b1999410de user:Victor Stinner date:Tue Oct 11 22:45:02 2011 +0200 files: Modules/_io/fileio.c description: Fix io.FileIO.readall() on Windows 64 bits Use Py_off_t type (64 bits) instead of off_t (32 bits). -

[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc16b6ab8e71 by Ross Lagerwall in branch 'default': Issue #12517: Silence warning on windows buildbots (from 7fd80c61ddaa). http://hg.python.org/cpython/rev/dc16b6ab8e71 -- nosy: +python-dev ___ Python t

[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-07-11 Thread Ross Lagerwall
Changes by Ross Lagerwall : -- nosy: +rosslagerwall ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-07-08 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-07-07 Thread STINNER Victor
STINNER Victor added the comment: _parse_off_t() is used by the following functions: - lockf - pread, pwrite - sendfile - truncate, ftruncate - posix_advice, posix_fallocate Windows has none of these functions. _parse_off_t() may be surrounded by #ifndef MS_WINDOWS with a comment explaining th

[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-07-07 Thread STINNER Victor
STINNER Victor added the comment: fileio_py_off_t.patch: Fix for FileIO.readall(). The consequence of the integer overflow in new_buffersize() looks to be that the buffer can be too small in some cases (and so readall() can be very slow?). -- keywords: +patch Added file: http://bugs.p

[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-07-07 Thread STINNER Victor
New submission from STINNER Victor : FileIO.readall() and _parse_off_t() help of the posix module use the off_t type. This type is only 32 bits long and so don't support files bigger than 4 GB (or maybe just 2 GB?). The Py_off_t type should be used instead. -- components: Windows messa