Windows binary stdin goes EOF after \x1a character

Neil Cerutti neilc at norwich.edu
Fri Oct 15 15:42:40 EDT 2010


On 2010-10-15, Dan <daniel.goertzen at gmail.com> wrote:
> I am writing a Windows program in Python 3.1.2 that reads
> binary data from stdin.  Whenever it hits a \x1a character,
> stdin goes EOF and no more data can be read.  A short program
> that exhibits this problem is:

stdin is not in binary mode. Try invoking with -u option.

-- 
Neil Cerutti



More information about the Python-list mailing list