This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jeffrey.Kintscher
Recipients Jeffrey.Kintscher, xdegaye, yan12125
Date 2019-05-20.01:07:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558314434.95.0.144229726992.issue36630@roundup.psfhosted.org>
In-reply-to
Content
The test fails because curses.pair_content(curses.COLOR_PAIRS-1) validates its parameter against the limits for signed short (max 32767) while curses.COLOR_PAIRS-1 has the value 65535.

Unfortunately, re-plumbing curses.pair_content() to use signed integers instead of signed shorts and replacing the underlying ncurses API call from pair_content() to extended_pair_content() doesn't fix the problem because extended_pair_content() still fails when passed 65535. Tracing into the ncurses 6.1 source code, I found that start_color() clamps the maximum number of color pairs at SHRT_MAX (32767) regardless of the number of color pairs supported by the terminal.
History
Date User Action Args
2019-05-20 01:07:14Jeffrey.Kintschersetrecipients: + Jeffrey.Kintscher, xdegaye, yan12125
2019-05-20 01:07:14Jeffrey.Kintschersetmessageid: <1558314434.95.0.144229726992.issue36630@roundup.psfhosted.org>
2019-05-20 01:07:14Jeffrey.Kintscherlinkissue36630 messages
2019-05-20 01:07:14Jeffrey.Kintschercreate