Karmic libncurses5.7 problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ncurses (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libncurses5
Just upgraded to Karmic, and some legacy ncurses programs broke, using libncurses5 ver 5.7+20090303-
Replacing /lib/libncurses
There seem to be 2 separate problems:
1) Function key "soft labels" don't appear.
2) Ncurses programs seem to use a ridiculous amount of memory depending on locale, when "setlocale(3)" has been called.
I wrote the following C program to demonstrate the problems:
#include <ncurses.h>
#include <locale.h>
int
main()
{
char label[3];
int i;
initscr();
cbreak();
noecho();
label[0] = 'F';
label[2] = '\0';
for (i = 1; i <= 8; i++) {
}
mvaddstr(0, 0, "The keys should be labelled F1 - F8");
mvaddstr(2, 0, "Hit any key to continue: ");
refresh();
(void) getch();
endwin();
}
Firstly this program is supposed to display 8 "soft labels" at the bottom of the XTerm (or gnome terminal), but it doesn't. (I have TERM=xterm).
If you unset the LANG environment variable, this program runs with a reasonable amount of memory, but if it is set to say en_AU.UTF-8, the process takes over 300MB!!
Thank you,
Michael Selig
ProblemType: Bug
Architecture: i386
CheckboxSubmission: da87e7fe49c084a
CheckboxSystem: daed2f3d6643b4a
Date: Fri Oct 30 17:42:18 2009
DistroRelease: Ubuntu 9.10
Package: libncurses5 5.7+20090803-
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_AU.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: ncurses
Uname: Linux 2.6.31-14-generic i686
On Fri, 30 Oct 2009, Michael Selig wrote:
> Public bug reported: 2ubuntu2. .5.7.so with the version from Jaunty fixes the problems.
>
> Binary package hint: libncurses5
>
> Just upgraded to Karmic, and some legacy ncurses programs broke, using libncurses5 ver 5.7+20090303-
> Replacing /lib/libncurses
>
> There seem to be 2 separate problems:
>
> 1) Function key "soft labels" don't appear.
That sounds like a regression which I fixed in
20090815
+ correct use of terminfo capabilities for initializing soft-keys,
broken in 20090509 merging.
(iirc, Ubuntu bumped up to 20090803)
-- invisible- island. net -island. net
Thomas E. Dickey
http://
ftp://invisible