Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
8b5a6441
Commit
8b5a6441
authored
Aug 12, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow unicode values up to 1114111, even if they are not portable to two-byte unicode systems
parent
efb4bde9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-1
No files found.
Cython/Compiler/Parsing.py
View file @
8b5a6441
...
@@ -610,7 +610,7 @@ def p_string_literal(s):
...
@@ -610,7 +610,7 @@ def p_string_literal(s):
elif
c
in
'Uux'
:
elif
c
in
'Uux'
:
if
kind
==
'u'
or
c
==
'x'
:
if
kind
==
'u'
or
c
==
'x'
:
chrval
=
int
(
systr
[
2
:],
16
)
chrval
=
int
(
systr
[
2
:],
16
)
if
chrval
>
sys
.
maxunicode
:
if
chrval
>
1114111
:
#
sys.maxunicode:
s
.
error
(
"Invalid unicode escape '%s'"
%
systr
,
s
.
error
(
"Invalid unicode escape '%s'"
%
systr
,
pos
=
pos
)
pos
=
pos
)
strval
=
unichr
(
chrval
)
strval
=
unichr
(
chrval
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment