mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
Issue #16980: Fix processing of escaped non-ascii bytes in the
unicode-escape-decode decoder.
This commit is contained in:
parent
e58785b200
commit
73e38809e0
2 changed files with 4 additions and 1 deletions
|
@ -12,6 +12,9 @@ What's New in Python 3.3.1?
|
||||||
Core and Builtins
|
Core and Builtins
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Issue #16980: Fix processing of escaped non-ascii bytes in the
|
||||||
|
unicode-escape-decode decoder.
|
||||||
|
|
||||||
- Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
|
- Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
|
||||||
|
|
||||||
- Issue #14850: Now a charmap decoder treats U+FFFE as "undefined mapping"
|
- Issue #14850: Now a charmap decoder treats U+FFFE as "undefined mapping"
|
||||||
|
|
|
@ -5725,7 +5725,7 @@ PyUnicode_DecodeUnicodeEscape(const char *s,
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
WRITECHAR('\\');
|
WRITECHAR('\\');
|
||||||
WRITECHAR(s[-1]);
|
WRITECHAR((unsigned char)s[-1]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue