cpython: d8c2ce63f5a4 (original) (raw)
Mercurial > cpython
changeset 81742:d8c2ce63f5a4
Issue #16980: Fix processing of escaped non-ascii bytes in the unicode-escape-decode decoder. [#16980]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Fri, 25 Jan 2013 23:53:29 +0200 |
parents | 513b728695fc(current diff)dcbc16afd6bc(diff) |
children | 01bbac9369e8 7aebb882a0c8 |
files | Misc/NEWS Objects/unicodeobject.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-)[+] [-] Misc/NEWS 3 Objects/unicodeobject.c 2 |
line wrap: on
line diff
--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ What's New in Python 3.4.0 Alpha 1? Core and Builtins ----------------- +- Issue #16980: Fix processing of escaped non-ascii bytes in the
- Issue #16975: Fix error handling bug in the escape-decode bytes decoder.
- Issue #14850: Now a charmap decoder treats U+FFFE as "undefined mapping"
--- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5598,7 +5598,7 @@ PyUnicode_DecodeUnicodeEscape(const char } else { WRITECHAR('\');
WRITECHAR(s[-1]);[](#l2.7)
WRITECHAR((unsigned char)s[-1]);[](#l2.8) }[](#l2.9) break;[](#l2.10) }[](#l2.11)