SIGN IN SIGN UP

gh-91924: Fix __lltrace__ for non-UTF-8 stdout encoding (GH-93199)

Fix __lltrace__ 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().
(cherry picked from commit 5695c0e0a25da58dfc1d22fc1cd68c2fda0a320d)

Co-authored-by: Victor Stinner <vstinner@python.org>
M
Miss Islington (bot) committed
307dacd651356d7318d5330b98794560329cf5e2
Parent: 2ea3d3b
Committed by GitHub <noreply@github.com> on 5/25/2022, 10:11:46 AM