SIGN IN SIGN UP

gh-125434: Fix non-ASCII thread names in faulthandler on Windows (#140700)

Add _Py_DumpWideString() function to dump a wide string as ASCII. It
supports surrogate pairs.

Replace _Py_EncodeLocaleRaw() with _Py_DumpWideString()
in write_thread_name().
V
Victor Stinner committed
80f20f58b2b8368ed8451a0161036dda94d8d33a
Parent: 2cefa70
Committed by GitHub <noreply@github.com> on 10/28/2025, 1:41:51 PM