diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-25 21:52:21 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-01-25 21:52:21 (GMT) |
commit | 73e38809e01113ca586056eaf603737c60b1009e (patch) | |
tree | 1ec90a3c6d2e8a0a3da80f904c6af26c4ae3061c /Objects | |
parent | e58785b200241bc9ced51a30bce7781a3c0c629c (diff) | |
download | cpython-73e38809e01113ca586056eaf603737c60b1009e.zip cpython-73e38809e01113ca586056eaf603737c60b1009e.tar.gz cpython-73e38809e01113ca586056eaf603737c60b1009e.tar.bz2 |
Issue #16980: Fix processing of escaped non-ascii bytes in the
unicode-escape-decode decoder.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index c30245d..a2ddf3e 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5725,7 +5725,7 @@ PyUnicode_DecodeUnicodeEscape(const char *s, } else { WRITECHAR('\\'); - WRITECHAR(s[-1]); + WRITECHAR((unsigned char)s[-1]); } break; } |