allow unicode values up to 1114111, even if they are not portable to two-byte unicode...
authorStefan Behnel <scoder@users.berlios.de>
Tue, 12 Aug 2008 13:09:35 +0000 (15:09 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 12 Aug 2008 13:09:35 +0000 (15:09 +0200)
Cython/Compiler/Parsing.py

index 836ab3dd4395aa033ff4f530f6bfefdf456233e1..fafcc8a33fd2bf942a7c61a570de025a03f48138 100644 (file)
@@ -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)