commit | 9369942054fe3fe389f4f4ff808d33c5d7945052 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Thu May 26 00:16:32 2022 +0200 |
committer | GitHub <noreply@github.com> | Thu May 26 00:16:32 2022 +0200 |
tree | 4f9b6e47cd432c374822e7d4f348f005d9062394 | |
parent | 02d35fc4ef8a718e74ab97402b6d8371b69d3635 [diff] |
[3.10] gh-91924: Fix __ltrace__ for non-UTF-8 stdout encoding (#93214) Fix __ltrace__ debug feature if the stdout encoding is not UTF-8. If the stdout encoding is not UTF-8, the first call to lltrace_resume_frame() indirectly sets lltrace to 0 when calling unicode_check_encoding_errors() which calls encodings.search_function(). Add test_lltrace.test_lltrace() test.