Commits

Maciej Fijalkowski  committed 05c1d02

one more "try to bring it to the previous state" thanks armin

  • Participants
  • Parent commits 4c07d8f

Comments (0)

Files changed (1)

File rpython/rlib/runicode.py

     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)