On ncurses 6.1 and 6.2, reading a wide-character cell fails:
>>> import curses
>>> str(curses.complexchar('A'))
curses.error: getcchar() returned ERR
This breaks complexchar.__str__/.attr/.pair, window.in_wch(), window.getbkgrnd(), and -- since gh-153395 -- the curses.ascii predicates that stringify a complexchar, so test_curses fails even headless.
curses_getcchar() passes the color pair through the extended-color opts slot, but getcchar() rejected a non-NULL opts before ncurses 6.3 (patch 20210116). setcchar() is unaffected (construction succeeds). main (3.16) only.
Activity
gh-154525: Fix curses getcchar() failure on ncurses older than 6.3 (G…
gh-154525: Skip ncurses find_pair()/alloc_pair() reuse checks before …
pythongh-154525: Fix curses getcchar() failure on ncurses older than …
pythongh-154525: Skip ncurses find_pair()/alloc_pair() reuse checks b…