[issue10066] xmlrpclib does not handle some non-printable characters properly
Martin v. Löwis
report at bugs.python.org
Wed Oct 13 21:06:05 CEST 2010
Martin v. Löwis <martin at v.loewis.de> added the comment:
Éric, I think the patch needs some rework. First, it is incorrect/incomplete: please see the Char definition for a complete list of characters that must be excluded. This then raises a Unicode vs. bytes issue, where invalid Unicode characters must be prohibited before the string actually being encoded (since apply the regex to the encoded string is not practical).
The other side of the bytes vs. string issue is that the bytes really ought to be in self.encoding, which doesn't get checked, either.
And then, it lacks tests.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list