SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 2 Python

[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.
V
Victor Stinner committed
9369942054fe3fe389f4f4ff808d33c5d7945052
Parent: 02d35fc
Committed by GitHub <noreply@github.com> on 5/25/2022, 10:16:32 PM