Close #14223: curses.addch() is no more limited to the range 0-255 when the
Python curses is not linked to libncursesw. It was a regression introduced in
Python 3.3a1.
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index 64178d7..40b6e68 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -340,7 +340,7 @@
#endif
{
*ch = (chtype)value;
- if ((long)*ch != value || value < 0 || value > 255) {
+ if ((long)*ch != value) {
PyErr_Format(PyExc_OverflowError,
"byte doesn't fit in chtype");
return 0;