[Python-modules-team] Bug#534709: wrong decoding of solidus now causes round-trip failure

Reid Barton rwbarton at ksplice.com
Tue Nov 2 02:18:24 UTC 2010


Since the bug fix for #593302, this issue has become much more serious
as now cjson cannot even round-trip a string correctly:

ii  python-cjson                          1.0.5-4
Very fast JSON encoder/decoder for Python

Python 2.6.6 (r266:84292, Aug 29 2010, 19:11:12)
[GCC 4.4.5 20100824 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cjson
>>> cjson.decode(cjson.encode('/'))
'\\/'

Same problem with ['/'].

Regards,
Reid Barton





More information about the Python-modules-team mailing list