Kaydet (Commit) 8f408609 authored tarafından Victor Stinner's avatar Victor Stinner

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.
üst 9a633865
...@@ -22,6 +22,10 @@ Core and Builtins ...@@ -22,6 +22,10 @@ Core and Builtins
Library Library
------- -------
- Issue #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.
- Issue #14168: Check for presence of Element._attrs in minidom before - Issue #14168: Check for presence of Element._attrs in minidom before
accessing it. accessing it.
......
...@@ -340,7 +340,7 @@ PyCurses_ConvertToCchar_t(PyCursesWindowObject *win, PyObject *obj, ...@@ -340,7 +340,7 @@ PyCurses_ConvertToCchar_t(PyCursesWindowObject *win, PyObject *obj,
#endif #endif
{ {
*ch = (chtype)value; *ch = (chtype)value;
if ((long)*ch != value || value < 0 || value > 255) { if ((long)*ch != value) {
PyErr_Format(PyExc_OverflowError, PyErr_Format(PyExc_OverflowError,
"byte doesn't fit in chtype"); "byte doesn't fit in chtype");
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment