]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-153862: Fix spurious color pair in curses window.inch() on a wide build (GH-154703)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 26 Jul 2026 08:02:50 +0000 (11:02 +0300)
committerGitHub <noreply@github.com>
Sun, 26 Jul 2026 08:02:50 +0000 (11:02 +0300)
commitb6188749d69e9609a83ee0d526013920da314ab2
tree3b5febb6608efeedd085241b54b1c48863d87cd0
parentf5f50593ad80cab01b942d407f46d216644c5e84
gh-153862: Fix spurious color pair in curses window.inch() on a wide build (GH-154703)

winch() returns the whole code point, so inch() replacing only its low
8 bits left the high bits in the color field.  Rebuild from
getcchar()'s attributes and color pair.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/test/test_curses.py
Modules/_cursesmodule.c