Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r58118:c6ea5993265c
Date: 2012-10-11 23:06 +0200
http://bitbucket.org/pypy/pypy/changeset/c6ea5993265c/

Log:    py3k does not allow utf-8 surrogates.

diff --git a/pypy/interpreter/unicodehelper.py 
b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -51,12 +51,10 @@
 def PyUnicode_DecodeUTF8(space, string):
     result, consumed = runicode.str_decode_utf_8(
         string, len(string), "strict",
-        final=True, errorhandler=decode_error_handler(space),
-        allow_surrogates=True)
+        final=True, errorhandler=decode_error_handler(space))
     return result
 
 def PyUnicode_EncodeUTF8(space, uni):
     return runicode.unicode_encode_utf_8(
         uni, len(uni), "strict",
-        errorhandler=encode_error_handler(space),
-        allow_surrogates=True)
+        errorhandler=encode_error_handler(space))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to