diff options
author | Michael Droettboom <mdboom@gmail.com> | 2022-09-07 21:23:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 21:23:54 (GMT) |
commit | 8bc356a7dd50cbdb46d10b8c7e457832431f5d9e (patch) | |
tree | 9426a7c4149963ad5e85964a8a2ac3f6b7bf72cc /Python/sysmodule.c | |
parent | 3e26de3c1f24bf0810eaaf7d75a4332775870e78 (diff) | |
download | cpython-8bc356a7dd50cbdb46d10b8c7e457832431f5d9e.zip cpython-8bc356a7dd50cbdb46d10b8c7e457832431f5d9e.tar.gz cpython-8bc356a7dd50cbdb46d10b8c7e457832431f5d9e.tar.bz2 |
gh-96268: Fix loading invalid UTF-8 (#96270)
This makes tokenizer.c:valid_utf8 match stringlib/codecs.h:decode_utf8.
It also fixes an off-by-one error introduced in 3.10 for the line number when the tokenizer reports bad UTF8.
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions