projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb4bde
)
allow unicode values up to 1114111, even if they are not portable to two-byte unicode...
author
Stefan Behnel
<scoder@users.berlios.de>
Tue, 12 Aug 2008 13:09:35 +0000
(15:09 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Tue, 12 Aug 2008 13:09:35 +0000
(15:09 +0200)
Cython/Compiler/Parsing.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Parsing.py
b/Cython/Compiler/Parsing.py
index 836ab3dd4395aa033ff4f530f6bfefdf456233e1..fafcc8a33fd2bf942a7c61a570de025a03f48138 100644
(file)
--- 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)