Serhiy Storchaka added the comment:

I forgot about this issue and open a new issue17906. There is a patch for it. 
Simplejson has accepted it in 
https://github.com/simplejson/simplejson/issues/62.

RFC 4627 does not make exceptions for the range 0xD800-0xDFFF (unescaped = 
%x20-21 / %x23-5B / %x5D-10FFFF), and the decoder must accept lone surrogates, 
both escaped and unescaped. Non-BMP characters may be represented as escaped 
surrogate pair, so escaped surrogate pair may be decoded as non-BMP character, 
while unescaped surrogate pair shouldn't.

----------
nosy: +bob.ippolito
versions: +Python 3.3, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11489>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to