From 8b5a64414e1257a32befb015117d618811c5fcff Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Tue, 12 Aug 2008 15:09:35 +0200 Subject: [PATCH] allow unicode values up to 1114111, even if they are not portable to two-byte unicode systems --- Cython/Compiler/Parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2