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 pitrou
Recipients gregory.p.smith, pitrou
Date 2011-07-23.20:11:32
SpamBayes Score 0.00015261
Marked as misclassified No
Message-id <>
The select() and poll() loop implementations of Popen.communicate() call os.write() instead of the write() method on the stdin pipe, meaning any newline translation *and* unicode-to-bytes encoding step is skipped.

To use the write() method on the stdin pipe, we may have to set the file descriptor in non-blocking mode, especially given that _PIPE_BUF worth of characters can amount to more than _PIPE_BUF bytes on the underlying raw fd.

See issue12591 for a simpler issue that was fixed.
Date User Action Args
2011-07-23 20:11:33pitrousetrecipients: + pitrou, gregory.p.smith
2011-07-23 20:11:33pitrousetmessageid: <>
2011-07-23 20:11:32pitroulinkissue12623 messages
2011-07-23 20:11:32pitroucreate