[issue11395] print(s) fails on Windows with long strings

Amaury Forgeot d'Arc report at bugs.python.org
Fri Mar 4 10:50:54 CET 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

Indeed, Python3.1 fails with the -u option.

Before r87824, the C call to write() performed CRLF conversion.  In the implementation of MSVCRT, a local buffer is used (1025 chars in vs8.0, 5*1024 in vs10.0), so WriteFile is called with small sizes.
Since r87824 (or with -u), no such conversion occurs, and WriteFile is called with the full buffer.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11395>
_______________________________________


More information about the Python-bugs-list mailing list