Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r60529:05c1d0284431
Date: 2013-01-27 20:07 +0200
http://bitbucket.org/pypy/pypy/changeset/05c1d0284431/
Log: one more "try to bring it to the previous state" thanks armin
diff --git a/rpython/rlib/runicode.py b/rpython/rlib/runicode.py
--- a/rpython/rlib/runicode.py
+++ b/rpython/rlib/runicode.py
@@ -60,13 +60,13 @@
def code_to_unichr(code):
if not we_are_translated() and sys.maxunicode == 0xFFFF:
# Host CPython is narrow build, generate surrogates
- return UNICHR(code)
+ return unichr_returns_surrogate(code)
else:
return unichr(code)
else:
def code_to_unichr(code):
# generate surrogates for large codes
- return UNICHR(code)
+ return unichr_returns_surrogate(code)
def _STORECHAR(result, CH, byteorder):
hi = chr(((CH) >> 8) & 0xff)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit