Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r95241:c44ea7bcdc43
Date: 2018-10-25 16:17 +0300
http://bitbucket.org/pypy/pypy/changeset/c44ea7bcdc43/
Log: if the errorhandler changes utf8, reflect that back into w_obj
diff --git a/pypy/objspace/std/unicodeobject.py
b/pypy/objspace/std/unicodeobject.py
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -1224,6 +1224,7 @@
# surrogatepass?
break
pos = _pos
+ w_object = space.newtext(utf8)
if errors is None or errors == 'strict':
if encoding is None or encoding == 'utf-8':
#if rutf8.has_surrogates(utf8):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit