New submission from Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue45467> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com