[issue18324] set_payload does not handle binary payloads correctly

R. David Murray report at bugs.python.org
Wed Jul 10 18:07:05 CEST 2013


R. David Murray added the comment:

Thanks, but the patch is incorrect.  The model consistently stores its data as surrogateescaped strings, and this assumption is baked in to other parts of the code.  So the correct fix is to do the surrogateescape encoding at the time the payload is set.

It might in fact be better to store a binary payload as binary, but making that kind of change to the model requires much more extensive review and testing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18324>
_______________________________________


More information about the Python-bugs-list mailing list