Author vstinner
Recipients mgedmin, vstinner
Date 2019-08-01.15:13:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1564672401.29.0.467362214172.issue37738@roundup.psfhosted.org>
In-reply-to
Content
stdscr.addch(str, color_pair) is implemented with:

   setcchar(&wcval, wstr, attr, 0, NULL);
   rtn = wadd_wch(self->win, &wcval);

whereas stdscr.addch(bytes, color_pair) is implemented with:

   rtn = waddch(self->win, cch | (attr_t) attr);

The 4th argument of setcchar() is "short color_pair": Python always pass 0. It seems to be your bug.

Attached PR 15071 fix this bug.

Note: Python 3.5 and 3.6 don't accept bugfixes anymore, only security fixes.
History
Date User Action Args
2019-08-01 15:13:21vstinnersetrecipients: + vstinner, mgedmin
2019-08-01 15:13:21vstinnersetmessageid: <1564672401.29.0.467362214172.issue37738@roundup.psfhosted.org>
2019-08-01 15:13:21vstinnerlinkissue37738 messages
2019-08-01 15:13:21vstinnercreate