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 vstinner
Recipients mgedmin, vstinner
Date 2019-08-14.10:40:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
On my Fedora 30 with libncursesw, A_COLOR = 0xff00.

After my change, _curses uses:

    static inline short
    attr_to_color_pair(int attr)
        return (short)((attr & A_COLOR) >> 8);

    setcchar(&wcval, wstr, attr, attr_to_color_pair(attr), NULL);

If someone gets troubles with attr passed "directly" as the 3rd argument of setcchar(), we can try to pass (attr & ~A_COLOR) instead. On my Linux, it would mean: only pass the low 8 bits of attr.

But since it "just" works on my Linux, I prefer to only make minimum changes to fix this issue on Linux.
Date User Action Args
2019-08-14 10:40:24vstinnersetrecipients: + vstinner, mgedmin
2019-08-14 10:40:24vstinnersetmessageid: <>
2019-08-14 10:40:24vstinnerlinkissue37738 messages
2019-08-14 10:40:24vstinnercreate