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

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.
History
Date User Action Args
2022-04-11 14:57:09adminsetgithub: 54689
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