[issue18016] subprocess should open stdin in mode w+b on windows

2019-03-19 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since Steve was inclined to close this in 2014 and there haven't been any additional comments since then, I am going to close this now. -- nosy: +cheryl.sabella resolution: -> works for me stage: -> resolved status: open -> closed _

[issue18016] subprocess should open stdin in mode w+b on windows

2014-07-15 Thread Steve Dower
Steve Dower added the comment: With 2.7 and 3.4 (same for 32- and 64-bit): >>> f = open('test.bin', 'wb') >>> f.write(b' ' * (1024*1024*100)) 104857600 >>> f.close() >>> import os >>> os.stat('test.bin').st_size 104857600 The linked KB only applies to VS 2003 and VS 2005 (VC7 and VC8), so I'm n

[issue18016] subprocess should open stdin in mode w+b on windows

2014-07-12 Thread Mark Lawrence
Mark Lawrence added the comment: @Jason I'm very sorry about the delay in getting back to you. Can our Windows gurus shed any light on this one? -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware type: -> behavior versions: +Python 3.4, Python 3.5 __

[issue18016] subprocess should open stdin in mode w+b on windows

2013-05-19 Thread Jason Gross
New submission from Jason Gross: Files opened on Windows in mode 'wb' have a limit on the number of characters that can be written to them (at once?); attempting to write too many bytes gives the confusing error “IOError: [Errno 22] Invalid argument”. See http://support.microsoft.com/default.