Message94317
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. |
|
Date |
User |
Action |
Args |
2009-10-21 18:27:48 | pitrou | set | recipients:
+ pitrou, loewis, ncoghlan |
2009-10-21 18:27:47 | pitrou | set | messageid: <1256149667.65.0.915230798822.issue7165@psf.upfronthosting.co.za> |
2009-10-21 18:27:45 | pitrou | link | issue7165 messages |
2009-10-21 18:27:45 | pitrou | create | |
|