New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_cursesmodule.c fails with ncurses-5.9 on Linux #58803
Comments
I need to define NCURSES_INTERNALS in py_curses.h before ncurses.h is included, even on my Linux system with ncurses-5.9. See the same issue for cygwin: 14438 |
you could find how to resolve in last patch attached to bpo-3754 |
extracted as separate patch |
You should remove the old code instead of comment it. +/* NOTE configure check if ncurses require such definition
#define NCURSES_OPAQUE 0
+*/
+/* NOTE configure check for existence of flags
+ * Also flags are visible only if WINDOW structure is not opaque
#ifndef WINDOW_HAS_FLAGS
#define WINDOW_HAS_FLAGS 1
#endif
+*/ |
I rewrote the patch for Python 3.4. If evaluate to the curses WINDOW doesn't have the _flags member, My environment (Cygwin 1.7.35 i686) cannot check the build case that NCURSES_OPAQUE is defined zero. |
Is this issue superseded by bpo-25720? |
Probably, yes. ncurses on Cygwin has provided is_pad() [*]. In addition, the old version of Cygwin will become to not define WINDOW_HAS_FLAGS by bpo-25720. [*] newer version than patchlevel 20090906 was provided on Cygwin in 2009. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: