[issue11489] json.dumps not parsable by json.loads (on Linux only)

2011-03-14 Thread Brian Merrell
Brian Merrell added the comment: >I am not sure this should be fixed in 2.x. Lone surrogates seem to >round-trip >just fine in 2.x and there likely to be existing code that >relies on this. I generally agree but am then at a loss as to how to detect and deal with lone surrogate

[issue11489] json.dumps not parsable by json.loads (on Linux only)

2011-03-13 Thread Brian Merrell
New submission from Brian Merrell : The following works on Win7x64 Python 2.6.5 and breaks on Ubuntu 10.04x64-2.6.5. This raises three issues: 1) Shouldn't anything generated by json.dumps be parsed by json.loads? 2) It appears this is an invalid unicode character. Shouldn't this