]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-125434: Display thread name in faulthandler on Windows (#142011)
authorVictor Stinner <vstinner@python.org>
Thu, 27 Nov 2025 12:05:37 +0000 (13:05 +0100)
committerGitHub <noreply@github.com>
Thu, 27 Nov 2025 12:05:37 +0000 (12:05 +0000)
commitad60d8963effb7677dbab05c6d8b3c1c3d78904c
tree4e7da56b406d927c8268ed6b047340ad58f7dd75
parentf47e928574187ae97c778e326739b3aa0c7dc765
[3.14] gh-125434: Display thread name in faulthandler on Windows (#142011)

* gh-125434: Display thread name in faulthandler on Windows (#140675)

(cherry picked from commit 313145eab5f6ebca21d2e3c80c130980d3bcdc88)

* 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().

(cherry picked from commit 80f20f58b2b8368ed8451a0161036dda94d8d33a)
Include/internal/pycore_traceback.h
Misc/NEWS.d/next/Library/2025-10-27-16-01-41.gh-issue-125434.qy0uRA.rst [new file with mode: 0644]
Python/pylifecycle.c
Python/traceback.c