]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-138004: Fix setting a thread name on OpenIndiana (GH-138017) (#138384)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 18:58:35 +0000 (20:58 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 18:58:35 +0000 (20:58 +0200)
commitffc67b3505cdf7c4e7fa50a7916a06accf4961ba
tree6cab95e4a3ce1b82985ac5ab6b24bfc343a72a9b
parenta893270c6d96262a34bf54b6b9c96d28bfc9c30d
[3.14] gh-138004: Fix setting a thread name on OpenIndiana (GH-138017) (#138384)

gh-138004: Fix setting a thread name on OpenIndiana (GH-138017)

Encode Solaris/Illumos thread names to ASCII, since
OpenIndiana does not support non-ASCII names.

Add tests for setting non-ASCII name for the main thread.
(cherry picked from commit c19db1d2b8935b6f4f775a0957a076f1864fbf80)

Co-authored-by: jadonduff <jadon_duff@icloud.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_threading.py
Misc/ACKS
Misc/NEWS.d/next/Core_and_Builtins/2025-08-21-06-31-42.gh-issue-138004.FH2Hre.rst [new file with mode: 0644]
Modules/_threadmodule.c