Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
951cb30a
Commit
951cb30a
authored
Nov 04, 2012
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #8271: Fix compilation on Windows
parent
a563107f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Objects/stringlib/codecs.h
Objects/stringlib/codecs.h
+1
-1
No files found.
Objects/stringlib/codecs.h
View file @
951cb30a
...
@@ -93,13 +93,13 @@ STRINGLIB(utf8_decode)(const char **inptr, const char *end,
...
@@ -93,13 +93,13 @@ STRINGLIB(utf8_decode)(const char **inptr, const char *end,
if
(
ch
<
0xE0
)
{
if
(
ch
<
0xE0
)
{
/* \xC2\x80-\xDF\xBF -- 0080-07FF */
/* \xC2\x80-\xDF\xBF -- 0080-07FF */
Py_UCS4
ch2
;
if
(
ch
<
0xC2
)
{
if
(
ch
<
0xC2
)
{
/* invalid sequence
/* invalid sequence
\x80-\xBF -- continuation byte
\x80-\xBF -- continuation byte
\xC0-\xC1 -- fake 0000-007F */
\xC0-\xC1 -- fake 0000-007F */
goto
InvalidStart
;
goto
InvalidStart
;
}
}
Py_UCS4
ch2
;
if
(
end
-
s
<
2
)
{
if
(
end
-
s
<
2
)
{
/* unexpected end of data: the caller will decide whether
/* unexpected end of data: the caller will decide whether
it's an error or not */
it's an error or not */
...
...
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