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
dc724d6e
Commit
dc724d6e
authored
Feb 06, 2002
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
e7c6ee4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Objects/unicodeobject.c
Objects/unicodeobject.c
+6
-6
No files found.
Objects/unicodeobject.c
View file @
dc724d6e
...
@@ -1191,8 +1191,8 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s,
...
@@ -1191,8 +1191,8 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s,
}
}
else
if
(
ch
<
0x0800
)
{
else
if
(
ch
<
0x0800
)
{
*
p
++
=
0xc0
|
(
ch
>>
6
);
*
p
++
=
(
char
)(
0xc0
|
(
ch
>>
6
)
);
*
p
++
=
0x80
|
(
ch
&
0x3f
);
*
p
++
=
(
char
)(
0x80
|
(
ch
&
0x3f
)
);
cbWritten
+=
2
;
cbWritten
+=
2
;
}
}
...
@@ -1230,10 +1230,10 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s,
...
@@ -1230,10 +1230,10 @@ PyObject *PyUnicode_EncodeUTF8(const Py_UNICODE *s,
cbWritten
+=
3
;
cbWritten
+=
3
;
}
else
{
}
else
{
*
p
++
=
0xf0
|
(
ch
>>
18
);
*
p
++
=
(
char
)(
0xf0
|
(
ch
>>
18
)
);
*
p
++
=
0x80
|
((
ch
>>
12
)
&
0x3f
);
*
p
++
=
(
char
)(
0x80
|
((
ch
>>
12
)
&
0x3f
)
);
*
p
++
=
0x80
|
((
ch
>>
6
)
&
0x3f
);
*
p
++
=
(
char
)(
0x80
|
((
ch
>>
6
)
&
0x3f
)
);
*
p
++
=
0x80
|
(
ch
&
0x3f
);
*
p
++
=
(
char
)(
0x80
|
(
ch
&
0x3f
)
);
cbWritten
+=
4
;
cbWritten
+=
4
;
}
}
}
}
...
...
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