Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document a workaround for a curses bug
The ncurses library has a bug which can provoke a segfault when a window is resized. The bug is provoked when a string with embedded newlines is added via addstr(). This commit documents that problem in the curses python library documentation and relates how to workaround the problem in the calling code. Related to https://bugs.python.org/issue35924
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Documentation/2019-05-08-13-17-44.bpo-35924.lqbNpW.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Add a note to the ``curses.addstr()`` documentation to warn that multiline | ||
strings can cause segfaults because of an ncurses bug. |