From: Stefan Behnel Date: Tue, 12 Aug 2008 13:09:35 +0000 (+0200) Subject: allow unicode values up to 1114111, even if they are not portable to two-byte unicode... X-Git-Tag: 0.9.8.1~56 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8b5a64414e1257a32befb015117d618811c5fcff;p=cython.git allow unicode values up to 1114111, even if they are not portable to two-byte unicode systems --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 836ab3dd..fafcc8a3 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -610,7 +610,7 @@ def p_string_literal(s): elif c in 'Uux': if kind == 'u' or c == 'x': chrval = int(systr[2:], 16) - if chrval > sys.maxunicode: + if chrval > 1114111: # sys.maxunicode: s.error("Invalid unicode escape '%s'" % systr, pos = pos) strval = unichr(chrval)