mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #16980: Fix processing of escaped non-ascii bytes in the
unicode-escape-decode decoder.
This commit is contained in:
commit
570c5b2354
2 changed files with 4 additions and 1 deletions
|
@ -5598,7 +5598,7 @@ PyUnicode_DecodeUnicodeEscape(const char *s,
|
|||
}
|
||||
else {
|
||||
WRITECHAR('\\');
|
||||
WRITECHAR(s[-1]);
|
||||
WRITECHAR((unsigned char)s[-1]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue