Commit 8b5a6441 authored by Stefan Behnel's avatar Stefan Behnel

allow unicode values up to 1114111, even if they are not portable to two-byte unicode systems

parent efb4bde9
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment