Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae136da

Browse files
committed
Merged revisions 85342 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r85342 | antoine.pitrou | 2010-10-09 17:24:28 +0200 (sam., 09 oct. 2010) | 4 lines Issue #10055: Make json C89-compliant in UCS4 mode. ........
1 parent f6c6e44 commit ae136da

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@ Extension Modules
600600
Build
601601
-----
602602

603+
- Issue #10055: Make json C89-compliant in UCS4 mode.
604+
603605
- Issue #6244: Allow detect_tkinter to look for Tcl/Tk 8.6.
604606

605607
- Issue #1633863: Don't ignore $CC under AIX.

Modules/_json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,8 @@ scanstring_unicode(PyObject *pystr, Py_ssize_t end, int strict, Py_ssize_t *next
430430
end += 6;
431431
/* Decode 4 hex digits */
432432
for (; next < end; next++) {
433-
c2 <<= 4;
434433
Py_UNICODE digit = buf[next];
434+
c2 <<= 4;
435435
switch (digit) {
436436
case '0': case '1': case '2': case '3': case '4':
437437
case '5': case '6': case '7': case '8': case '9':

0 commit comments

Comments
 (0)