Zachary Ware added the comment:
Ok, I've tracked down where the error is happening, but I don't know enough
about curses to suggest where it should go from here. It does appear to be the
version of ncurses that Ubuntu 13.10 uses that's causing problems, version
5.9+20130608. The issue stems from a change in ncurses/base/lib_overlay.c,
here's the relevant part of the diff to copywin (left is vanilla ncurses-5.9
from http://ftp.gnu.org/pub/gnu/ncurses/, right is ncurses-5.9+20130608
obtained by 'sudo apt-get source ncurses'):
--- ncurses-5.9/ncurses/base/lib_overlay.c 2009-10-24 18:21:31.000000000
-0500
+++ ncurses-5.9+20130608/ncurses/base/lib_overlay.c 2014-01-25
17:13:08.461548012 -0600
@@ -151,7 +151,10 @@
dminrow, dmincol,
dmaxrow, dmaxcol, over));
- if (src && dst) {
+ if (src != 0
+ && dst != 0
+ && dmaxrow >= dminrow
+ && dmaxcol >= dmincol) {
_nc_lock_global(curses);
bk = AttrOf(dst->_nc_bkgd);
The failing test passes 1, 2, 3, 3, 2, 1 for sminrow, smincol, dminrow,
dmincol, dmaxrow, dmaxcol, which fails the dmaxrow >= dminrow check and copywin
returns -1 (ERR). Changing the test to call with 1, 1, 2, 2, 3, 3 prevents the
failure, but does ugly things to the tty when the process ends.
----------
title: test_curses is failing -> test_curses is failing on Ubuntu 13.10
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue20358>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com