classification
Title: cgi.py should document the need for binary stdin/stdout
Type: behavior Stage:
Components: Documentation, Library (Lib) Versions: Python 3.2
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, v+python
Priority: normal Keywords:

Created on 2010-11-21 05:43 by v+python, last changed 2011-01-31 04:45 by v+python. This issue is now closed.

Messages (2)
msg121868 - (view) Author: Glenn Linderman (v+python) * Date: 2010-11-21 05:43
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.
msg127575 - (view) Author: Glenn Linderman (v+python) * Date: 2011-01-31 04:45
Fixed by issue 10841 and issue 4953.
History
Date User Action Args
2011-01-31 04:45:51v+pythonsetstatus: open -> closed
nosy: v+python, docs@python
messages: + msg127575
2010-11-21 07:55:03v+pythonsetassignee: docs@python

type: behavior
components: + Documentation
nosy: + docs@python
2010-11-21 05:43:08v+pythoncreate