Author: Amaury Forgeot d'Arc <amaur...@gmail.com>
Branch: 
Changeset: r73941:e110898a2ba8
Date: 2014-05-19 22:32 +0200
http://bitbucket.org/pypy/pypy/changeset/e110898a2ba8/

Log:    Fix an obscure translation issue, maybe because runicode functions
        are called with two kinds of strings. (grafted from
        55adb08ba74025902e044a2f0de8ee66717848ee)

diff --git a/rpython/rlib/runicode.py b/rpython/rlib/runicode.py
--- a/rpython/rlib/runicode.py
+++ b/rpython/rlib/runicode.py
@@ -343,6 +343,7 @@
                              or is_narrow_host()) and
                             ch <= 0xDBFF and 0xDC00 <= ch2 <= 0xDFFF):
                             ch3 = ((ch - 0xD800) << 10 | (ch2 - 0xDC00)) + 
0x10000
+                            assert ch3 >= 0
                             pos += 1
                             _encodeUCS4(result, ch3)
                             continue
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to