Issue #16980: Fix processing of escaped non-ascii bytes in the

unicode-escape-decode decoder.
This commit is contained in:
Serhiy Storchaka 2013-01-25 23:53:29 +02:00
commit 570c5b2354
2 changed files with 4 additions and 1 deletions

View File

@ -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
unicode-escape-decode 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"

View File

@ -5598,7 +5598,7 @@ PyUnicode_DecodeUnicodeEscape(const char *s,
}
else {
WRITECHAR('\\');
WRITECHAR(s[-1]);
WRITECHAR((unsigned char)s[-1]);
}
break;
}