FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-154525: Fix curses getcchar() failure on ncurses older than 6.3 by serhiy-storchaka · Pull Request #154526 · python/cpython · GitHub

Repository navigation

gh-154525: Fix curses getcchar() failure on ncurses older than 6.3 - #154526

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:curses-getcchar-ncurses-6.3
Jul 23, 2026
Merged

serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:curses-getcchar-ncurses-6.3

Conversation

serhiy-storchaka commented Jul 23, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Member

getcchar() rejected a non-NULL opts argument before ncurses 6.3 (patch 20210116). curses_getcchar() passes the color pair through opts, so on ncurses 6.1 and 6.2 every wide-character cell read failed with getcchar() returned ERR, breaking complexchar, in_wch(), getbkgrnd(), and (via gh-153395) headless test_curses.

Read the pair through the short slot on older ncurses. main-only -- the opts path and complexchar are 3.16-only.

getcchar() rejected a non-NULL opts argument before ncurses 6.3, so read
the color pair through the short slot instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
_NCURSES_GETCCHAR_EXTENDED_PAIR was referenced in only one place; move the
version condition and its comment to that call site.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
serhiy-storchaka merged commit aad438b into python:main Jul 23, 2026
56 checks passed
serhiy-storchaka deleted the curses-getcchar-ncurses-6.3 branch July 23, 2026 14:48
mbeijen pushed a commit to mbeijen/cpython that referenced this pull request Aug 14, 2026
…6.3 (pythonGH-154526)

getcchar() rejected a non-NULL opts argument before ncurses 6.3, so read
the color pair through the short slot instead.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL