[New-bugs-announce] [issue10480] cgi.py should document the need for binary stdin/stdout
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)
title: cgi.py should document the need for binary stdin/stdout
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce