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:52:21 +02:00
parent e58785b200
commit 73e38809e0
2 changed files with 4 additions and 1 deletions

View file

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