This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Matt.Mackall, benjamin.peterson, brett.cannon, eric.smith, ezio.melotti, josh.r, larry, loewis, ncoghlan, pitrou, vstinner
Date 2014-04-16.06:19:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397629158.2.0.672605843294.issue21199@psf.upfronthosting.co.za>
In-reply-to
Content
> On Windows, the type of the size parameter of read() is an unsigned int, not long nor size_t (...)

Oh, I read the wrong function. In fact, file_read() of Python 2.7 calls fread() and fread() uses size_t types, even on Windows.

To make sure that we are talking about the same thing, I wrote the attached file_read_size_t.patch file which replaces "l" with "n" in file_read().

Note: os.read() uses int types, even on Python 3.5, whereas read() uses a size_t type for the number of bytes on Linux.
History
Date User Action Args
2014-04-16 06:19:18vstinnersetrecipients: + vstinner, loewis, brett.cannon, ncoghlan, pitrou, larry, eric.smith, benjamin.peterson, ezio.melotti, Matt.Mackall, josh.r
2014-04-16 06:19:18vstinnersetmessageid: <1397629158.2.0.672605843294.issue21199@psf.upfronthosting.co.za>
2014-04-16 06:19:18vstinnerlinkissue21199 messages
2014-04-16 06:19:17vstinnercreate