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 loewis
Recipients BreamoreBoy, Steven.Hartland, loewis, pitrou, vstinner
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, vstinner, 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