Issue 10480: cgi.py should document the need for binary stdin/stdout - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
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 2022-04-11 14:57 by admin. 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.