commit | 73e38809e01113ca586056eaf603737c60b1009e | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Fri Jan 25 23:52:21 2013 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Fri Jan 25 23:52:21 2013 +0200 |
tree | 1ec90a3c6d2e8a0a3da80f904c6af26c4ae3061c | |
parent | e58785b200241bc9ced51a30bce7781a3c0c629c [diff] [blame] |
Issue #16980: Fix processing of escaped non-ascii bytes in the unicode-escape-decode decoder.
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 @@ } else { WRITECHAR('\\'); - WRITECHAR(s[-1]); + WRITECHAR((unsigned char)s[-1]); } break; }