Windows binary stdin goes EOF after \x1a character

Dan daniel.goertzen at gmail.com
Fri Oct 15 21:53:30 CEST 2010


On Oct 15, 2:42 pm, Neil Cerutti <ne... at norwich.edu> wrote:
> On 2010-10-15, Dan <daniel.goert... 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

That worked, thanks!
Dan.



More information about the Python-list mailing list