Debian bug report logs - #1340 ncurses setupterm() handles unknown terminals badly. Package: ncurses ; Reported by: Bill Mitchell ; 52 days old . ----------------------------------------------------------------------- Message received at debian-bugs: From mdd.comm.mot.com!mitchell Sat Sep 9 11:08:14 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0srUK5-000FT6C; Sat, 9 Sep 95 11:08 PDT Received: from motgate.mot.com by pixar.com with SMTP id AA17125 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Sat, 9 Sep 1995 11:07:59 -0700 Received: from pobox.mot.com (pobox.mot.com [129.188.137.100]) by motgate.mot.com (8.6.11/8.6.10/MOT-3.8) with ESMTP id NAA24546 for ; Sat, 9 Sep 1995 13:08:11 -0500 Received: from mdd.comm.mot.com (mdisea.mdd.comm.mot.com [138.242.64.201]) by pobox.mot.com (8.6.11/8.6.10/MOT-3.8) with SMTP id NAA01112 for ; Sat, 9 Sep 1995 13:08:10 -0500 Received: from bb29c.mdd.comm.mot.com by mdd.comm.mot.com (4.1/SMI-4.1) id AA19685; Sat, 9 Sep 95 11:08:09 PDT Received: by bb29c.mdd.comm.mot.com (4.1/SMI-4.1) id AA14527; Sat, 9 Sep 95 11:08:07 PDT Date: Sat, 9 Sep 1995 11:08:07 -0700 (PDT) From: Bill Mitchell X-Sender: mitchell@bb29c To: debian-bugs@pixar.com Subject: ncurses setupterm() handles unknown terminals badly. Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII PACKAGE: ncurses VERSION: 1.9.3 terminfo(3ncurses) terminfo(3ncurses) [...] int setupterm(char *term, int fildes, int *errret); [...] int setterm(char *term); [...] If errret is not null, then setupterm returns OK or ERR and stores a status value in the integer pointed to by errret. A status of 1 in errret is normal, 0 means that the terminal could not be found, and -1 means that the terminfo database could not be found. If errret is null, setupterm prints an error message upon finding an error and exits. [...] Script started on Sun Sep 10 10:47:26 1995 root:~# cat x.c #include #include main() { int rv; rv = setupterm((char *) 0, 1, (int *) 0); exit(rv); } root:~# TERM=crap root:~# time ./x "/etc/termcap", line 5: terminal 'linux', Unknown Capability - 'sb' "/etc/termcap", line 38: terminal 'xterm', Unknown Capability - 'kn' [... continues in this vein for several hundred lines ...] "/etc/termcap", line 3618: terminal 'scoansi', Unknown Capability - 'Gu' "/etc/termcap", line 3618: terminal 'scoansi', Unknown Capability - 'Gv' [... very long delay ...] 'crap': Unknown terminal type. Command had non-zero exit status 1 66.94user 1.84system 1:09.98elapsed 98%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (41major+368minor)pagefaults 0swaps root:~# Script done on Sun Sep 10 10:49:23 1995 Note that this took over a minute to complete. mitchell@mdd.comm.mot.com (Bill Mitchell) ----------------------------------------------------------------------- Acknowledgement sent to Bill Mitchell : New bug report received and forwarded. Full text available. ----------------------------------------------------------------------- Report forwarded to debian-devel@pixar.com : Bug#1340 ; Package ncurses . Full text available. ----------------------------------------------------------------------- Ian Jackson / iwj10@thor.cam.ac.uk , with the debian-bugs tracking mechanism This page last modified 07:43:01 GMT Wed 01 Nov