]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154874: Fix the sign of curses.termattrs() (GH-154875)
authorVyron Vasileiadis <hi@fedonman.com>
Thu, 30 Jul 2026 19:50:03 +0000 (22:50 +0300)
committerGitHub <noreply@github.com>
Thu, 30 Jul 2026 19:50:03 +0000 (19:50 +0000)
commit0b083c43a455fbdf5378495751e142ea83e294b0
treeeb4d6d89ff74d5f638514808e6e5d4e829801a96
parent6489af6f5731874a48042fa445c4e94fca41ff30
gh-154874: Fix the sign of curses.termattrs() (GH-154875)

termattrs() returns a chtype mask, but it was routed through an int, so a
terminal that advertises A_ITALIC came back negative and the result could
no longer be passed to the attribute functions.
Lib/test/test_curses.py
Misc/NEWS.d/next/Library/2026-07-29-11-58-17.gh-issue-154874.NAPdBp.rst [new file with mode: 0644]
Modules/_cursesmodule.c