[issue17906] JSON should accept lone surrogates

Bob Ippolito report at bugs.python.org
Fri May 10 20:08:10 CEST 2013


Bob Ippolito added the comment:

The patch that I wrote for simplejson is here (it differs a bit from serhiy's patch): https://github.com/simplejson/simplejson/commit/35816bfe2d0ddeb5ddcc68239683cbb35b7e3ff2

I discovered another bug along the way in the pure-Python scanstring, int(s, 16) will parse '0xNN' when json expects only strings of the form 'NNNN' to work. I fixed that along with this issue by explicitly checking for x or X.

----------

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


More information about the Python-bugs-list mailing list