Message141014
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:33 | pitrou | set | recipients:
+ pitrou, gregory.p.smith |
2011-07-23 20:11:33 | pitrou | set | messageid: <1311451893.22.0.0169745025507.issue12623@psf.upfronthosting.co.za> |
2011-07-23 20:11:32 | pitrou | link | issue12623 messages |
2011-07-23 20:11:32 | pitrou | create | |
|