]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-153862: Fix spurious color pair in curses window.inch() on a wide build...
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 26 Jul 2026 12:03:32 +0000 (15:03 +0300)
committerGitHub <noreply@github.com>
Sun, 26 Jul 2026 12:03:32 +0000 (15:03 +0300)
commitd283a861fc41f48fc39e2c38c2f5f98d6a1a3a80
tree83b1b6d759dacf5116ea93017e8ea73a1899fb0f
parent501e911dcc619a81a9bb6463029d2293332d9120
[3.13] gh-153862: Fix spurious color pair in curses window.inch() on a wide build (GH-154703) (GH-154733)

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.

(cherry picked from commit b6188749d69e9609a83ee0d526013920da314ab2)

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