[New-bugs-announce] [issue10480] cgi.py should document the need for binary stdin/stdout

Glenn Linderman report at bugs.python.org
Sun Nov 21 06:43:09 CET 2010


New submission from Glenn Linderman <v+python at g.nevcal.com>:

CGI is a bytestream protocol.  Python assumes a text mode encoding for stdin and stdout, this is inappropriate for the CGI interface.

CGI should provide an API to "do the right thing" to make stdin and stout binary mode interfaces (including mscvrt setting to binary on Windows).  Failing that, it should document the need to do so in CGI applications.

Failing that, it should be documented somewhere, CGI seems the most appropriate place to me.

----------
components: Library (Lib)
messages: 121868
nosy: v+python
priority: normal
severity: normal
status: open
title: cgi.py should document the need for binary stdin/stdout
versions: Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10480>
_______________________________________


More information about the New-bugs-announce mailing list