Author: Armin Rigo <[email protected]>
Branch:
Changeset: r97677:a55eb5aca533
Date: 2019-09-29 14:12 +0200
http://bitbucket.org/pypy/pypy/changeset/a55eb5aca533/
Log: Got a translation error on Windows that appears random, but this
should fix it
diff --git a/rpython/rlib/runicode.py b/rpython/rlib/runicode.py
--- a/rpython/rlib/runicode.py
+++ b/rpython/rlib/runicode.py
@@ -407,8 +407,9 @@
_encodeUCS4(result, ch)
return result.build()
unicode_encode_utf_8_elidable = jit.elidable(
+ enforceargs(s=unicode, allow_surrogates=bool)(
func_with_new_name(unicode_encode_utf_8_impl,
- "unicode_encode_utf_8_elidable"))
+ "unicode_encode_utf_8_elidable")))
def unicode_encode_utf8sp(s, size):
# Surrogate-preserving utf-8 encoding. Any surrogate character
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit