Antoine Pitrou <pitrou at free.fr> added the comment: New patch with tests. ---------- Added file: http://bugs.python.org/file18810/backslashsurrogates2.patch _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue9804> _______________________________________