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.

Author pitrou
Recipients loewis, ncoghlan, pitrou
Date 2009-10-21.18:27:44
SpamBayes Score 1.6753654e-08
Marked as misclassified No
Message-id <1256149667.65.0.915230798822.issue7165@psf.upfronthosting.co.za>
In-reply-to
Content
Well this is in the CGI implementation, and it's reasonable to assume
that CGI will only be used with a real stream. Besides, the encoding
used with stdout must be the xmlrpc encoding (probably utf-8), not the
default encoding of standard streams on the system, which means direct
access to the underlying binary stream must be possible.

(however, _marshaled_dispatch() is quite strange in that it accepts str
but returns bytes)

I propose to fix test_xmlrpc instead so that it uses a BytesIO wrapped
in a TextIOWrapper. Patch included.
History
Date User Action Args
2009-10-21 18:27:48pitrousetrecipients: + pitrou, loewis, ncoghlan
2009-10-21 18:27:47pitrousetmessageid: <1256149667.65.0.915230798822.issue7165@psf.upfronthosting.co.za>
2009-10-21 18:27:45pitroulinkissue7165 messages
2009-10-21 18:27:45pitroucreate