]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-125434: Fix non-ASCII thread names in faulthandler on Windows (#140700)
authorVictor Stinner <vstinner@python.org>
Tue, 28 Oct 2025 13:41:51 +0000 (14:41 +0100)
committerGitHub <noreply@github.com>
Tue, 28 Oct 2025 13:41:51 +0000 (14:41 +0100)
commit80f20f58b2b8368ed8451a0161036dda94d8d33a
treedb67e3234a0456459294d1a2607a3a0d7093b8c9
parent2cefa70eb92321c39f7d66bd862b2f66cd06f0fa
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().
Python/traceback.c