[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-29 Thread Yutao Yuan
Yutao Yuan added the comment: Yes, it works for me now. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28549> ___ ___ Pyth

[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-28 Thread Yutao Yuan
Yutao Yuan added the comment: It fails to compile for me. setcchar should take a cchar_t* and a const wchar_t* instead. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue28549] curses: calling addch() with an 1-length str segfaults with ncurses6 compiled with --enable-ext-colors

2016-10-28 Thread Yutao Yuan
New submission from Yutao Yuan: When addch() is called with an 1-length str, it is converted into a cchar_t. Ncurses6 adds a new field ext_color to cchar_t if it is enabled at compile time, and it is not initialized here, which causes various problems like segfaults or wrong display