Author loewis
Recipients BreamoreBoy, Steven.Hartland, haypo, loewis, pitrou
Date 2013-05-22.11:28:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369222089.63.0.164779274756.issue7727@psf.upfronthosting.co.za>
In-reply-to
Content
The original report really includes two parts:
a) when a string containing \0 is marshalled, ill-formed XML is produced
b) the expected behavior is that base64 is used

IMO: While a) is correct, b) is not. Antoine is correct that xmlrpclib.Binary should be used if you want to transmit binary data. Consequently, an Error should be reported if an attempt is made to produce ill-formed XML.

OTOH, ill-formed XML can also be produced when sending a byte string that does not match the encoding declaration. Because of that, I propose to close this by documentating the limitations, rather than changing the code.
History
Date User Action Args
2013-05-22 11:28:09loewissetrecipients: + loewis, pitrou, haypo, Steven.Hartland, BreamoreBoy
2013-05-22 11:28:09loewissetmessageid: <1369222089.63.0.164779274756.issue7727@psf.upfronthosting.co.za>
2013-05-22 11:28:09loewislinkissue7727 messages
2013-05-22 11:28:09loewiscreate