[New-bugs-announce] [issue45467] Fix incremental decoder and stream reader in the "raw-unicode-escape" codec

Serhiy Storchaka report at bugs.python.org
Thu Oct 14 06:29:46 EDT 2021


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

Similar to 45461, but with "raw-unicode-escape".

When an incremental decoder gets a part of escape sequence (\uXXXX or \UXXXXXXXX) it raises an exception or return a bare "\" if it was the only part instead of keeping it until getting the rest. It is exposed in text files (io.TextIOWrapper) when reads from the underlying binary stream splits an escape sequence between blocks. There is similar issue with stream readers (codecs.StreamReader).

----------
components: Unicode
messages: 403893
nosy: ezio.melotti, lemburg, serhiy.storchaka, vstinner
priority: normal
severity: normal
status: open
title: Fix incremental decoder and stream reader in the "raw-unicode-escape" codec
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45467>
_______________________________________


More information about the New-bugs-announce mailing list