[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#1045: Simple program to test bug 1045



Libtermcap 2.0.8 doesn't have this bug:

bash$ gcc -o tgetflag tgetflag.c -ltermcap
bash$ TERM=asdfasdfsadfasdf ./tgetflag
tgetent: 0
tgetflag: 0

But libncurses indeed still has this bug. I'm reassigning this bug to
ncurses3.0 

   Christian

On Fri, 8 Nov 1996, Lars Wirzenius wrote:

> #include <stdlib.h>
> #include <curses.h>
> #include <term.h>
> 
> int main(void) {
>         char buf[1024];
> 
>         printf("tgetent: %d\n", tgetent(buf, getenv("TERM")));
>         printf("tgetflag: %d\n", tgetflag("hc"));
>         return 0;
> }
> $ gcc tgetflag.c -lncurses
> $ TERM=xterm ./a.out
> tgetent: 1
> tgetflag: 0
> $ TERM=unlisted ./a.out
> tgetent: -1
> Segmentation fault (core dumped)
> [status 139]
> $ 
> 
> Note that less doesn't seem to have the problem any more. less was used
> in the original bug report.
> 
> This bug is over 16 months, and it would be nice it could be fixed.
> 
> -- 
> Please read <http://www.iki.fi/liw/mail-to-lasu.html> before mailing me.
> Please don't Cc: me when replying to my message on a mailing list.
> 
> 
> 

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: