]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 6.2 - patch 20201227
authorThomas E. Dickey <dickey@invisible-island.net>
Mon, 28 Dec 2020 01:11:44 +0000 (01:11 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Mon, 28 Dec 2020 01:11:44 +0000 (01:11 +0000)
+ update terminology entry to 1.8.1 -TD
+ fix some compiler-warnings which gcc8 reports incorrectly.

18 files changed:
NEWS
VERSION
dist.mk
misc/terminfo.src
package/debian-mingw/changelog
package/debian-mingw64/changelog
package/debian/changelog
package/mingw-ncurses.nsi
package/mingw-ncurses.spec
package/ncurses.spec
package/ncursest.spec
panel/p_delete.c
panel/p_new.c
progs/dump_entry.c
test/demo_defkey.c
test/picsmap.c
test/tclock.c
test/tracemunch

diff --git a/NEWS b/NEWS
index d58c2c1c4b0a0e2a8e5ece47be244e74d1c62f2c..8eb99de70b6e2ee2b51f936135790bad0a6e24d9 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -26,7 +26,7 @@
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
--- $Id: NEWS,v 1.3608 2020/12/19 23:57:59 tom Exp $
+-- $Id: NEWS,v 1.3610 2020/12/27 23:49:02 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -46,6 +46,10 @@ See the AUTHORS file for the corresponding full names.
 Changes through 1.9.9e did not credit all contributions;
 it is not possible to add this information.
 
 Changes through 1.9.9e did not credit all contributions;
 it is not possible to add this information.
 
+20201227
+       + update terminology entry to 1.8.1 -TD
+       + fix some compiler-warnings which gcc8 reports incorrectly.
+
 20201219
        + suppress hyphenation in generated html for manpages, to address
          regression in upgrade of groff 1.22.2 to 1.22.3.
 20201219
        + suppress hyphenation in generated html for manpages, to address
          regression in upgrade of groff 1.22.2 to 1.22.3.
diff --git a/VERSION b/VERSION
index 0eb92632458e761033b014cc8500bbfa093662dc..b1ea8743a9ec900ad3a6bff18fa3b6ea758d7b16 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:10 6.2     20201219
+5:0:10 6.2     20201227
diff --git a/dist.mk b/dist.mk
index 9503a8b6e62a663bc3c9711bb6e5f936c2af4337..f7525de281168c1acf2464631cca3ebdf37d2342 100644 (file)
--- a/dist.mk
+++ b/dist.mk
@@ -26,7 +26,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.1391 2020/12/19 23:48:33 tom Exp $
+# $Id: dist.mk,v 1.1393 2020/12/27 23:48:19 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -38,7 +38,7 @@ SHELL = /bin/sh
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 6
 NCURSES_MINOR = 2
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 6
 NCURSES_MINOR = 2
-NCURSES_PATCH = 20201219
+NCURSES_PATCH = 20201227
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index 3afb57e84b7151e290c693049d26a955354b6ce7..3b683c657f8332e3c64a64e135f52a79505b4993 100644 (file)
@@ -6,8 +6,8 @@
 # Report bugs and new terminal descriptions to
 #      bug-ncurses@gnu.org
 #
 # Report bugs and new terminal descriptions to
 #      bug-ncurses@gnu.org
 #
-#      $Revision: 1.835 $
-#      $Date: 2020/12/05 16:54:21 $
+#      $Revision: 1.840 $
+#      $Date: 2020/12/28 00:40:10 $
 #
 # The original header is preserved below for reference.  It is noted that there
 # is a "newer" version which differs in some cosmetic details (but actually
 #
 # The original header is preserved below for reference.  It is noted that there
 # is a "newer" version which differs in some cosmetic details (but actually
@@ -6957,6 +6957,7 @@ terminator|Terminator no line wrap,
 #### TERMINOLOGY
 # https://www.enlightenment.org/about-terminology
 #
 #### TERMINOLOGY
 # https://www.enlightenment.org/about-terminology
 #
+# 2014/10/14:
 # Tested terminology-0.3.0, 0.6.1, using tack and vttest.  This is not a vt100
 # emulator, nor is it compatible with xterm, but it uses a few features from
 # both -TD
 # Tested terminology-0.3.0, 0.6.1, using tack and vttest.  This is not a vt100
 # emulator, nor is it compatible with xterm, but it uses a few features from
 # both -TD
@@ -7020,6 +7021,7 @@ terminology-0.6.1|EFL-based terminal emulator,
        kRIT7=\E[1;7C, kUP=\E[1;2A, use=xterm+pcf0, use=vt100,
        use=xterm+256setaf,
 
        kRIT7=\E[1;7C, kUP=\E[1;2A, use=xterm+pcf0, use=vt100,
        use=xterm+256setaf,
 
+# 2017-11-11
 # Tested terminology 1.0.0
 #
 # tack -
 # Tested terminology 1.0.0
 #
 # tack -
@@ -7043,8 +7045,30 @@ terminology-1.0.0|EFL-based terminal emulator,
        use=xterm+x11mouse, use=xterm+pce2, use=xterm+pcf2,
        use=xterm+pcc2, use=terminology-0.6.1,
 
        use=xterm+x11mouse, use=xterm+pce2, use=xterm+pcf2,
        use=xterm+pcc2, use=terminology-0.6.1,
 
+# 2020/12/26:
+# Tested terminology 1.8.1 using tack and vttest.
+# tack -
+#      flash does not work
+#      italics and crossed-out text work
+#      no meta mode
+# vttest -
+#      DA1 says this is a VT420 with with 132 columns, NRCS, horizontal scrolling
+#      DA2 says this is a VT510, version 33.7
+#      NRCS does not work, program hangs in the locking shift test.
+#      some of the VT420 rectangle operations work
+#      left/right margins do not work
+#      most of DECSCUSR works
+#      most problems with bce are fixed.
+terminology-1.8.1|EFL-based terminal emulator,
+       km@,
+       cvvis@, flash@, initc@, kcbt=\E[Z, rmm@, smm@, Ms@,
+       use=ecma+index, use=xterm+256setaf, use=ansi+rep,
+       use=ecma+strikeout, use=xterm+sm+1006,
+       use=xterm+pcfkeys, use=xterm+tmux, use=xterm-basic,
+       use=ecma+italics, use=xterm-basic,
+
 terminology|EFL-based terminal emulator,
 terminology|EFL-based terminal emulator,
-       use=terminology-1.0.0,
+       use=terminology-1.8.1,
 
 ######## OPENGL CLIENTS
 
 
 ######## OPENGL CLIENTS
 
@@ -26751,4 +26775,7 @@ v3220|LANPAR Vision II model 3220/3221/3222,
 #      + correct mlterm3 kf1-kf4 (Debian #975322) -TD
 #      + add flash to mlterm3 -TD
 #
 #      + correct mlterm3 kf1-kf4 (Debian #975322) -TD
 #      + add flash to mlterm3 -TD
 #
+# 2020-12-27
+#      + update terminology to 1.8.1 -TD
+#
 ######## SHANTIH!  SHANTIH!  SHANTIH!
 ######## SHANTIH!  SHANTIH!  SHANTIH!
index c51335f348bac1a3e13df0741217f7c44d217ecf..ee47719d8244a566490168d04dce2bd2bd6be0d1 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.2+20201219) unstable; urgency=low
+ncurses6 (6.2+20201227) unstable; urgency=low
 
   * latest weekly patch
 
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 19 Dec 2020 05:58:49 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 27 Dec 2020 18:48:19 -0500
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index c51335f348bac1a3e13df0741217f7c44d217ecf..ee47719d8244a566490168d04dce2bd2bd6be0d1 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.2+20201219) unstable; urgency=low
+ncurses6 (6.2+20201227) unstable; urgency=low
 
   * latest weekly patch
 
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 19 Dec 2020 05:58:49 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 27 Dec 2020 18:48:19 -0500
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 41e7ebef03d3ac08783304f92caa7113087dc7ec..2e8cfdf97989ef51b9eef6ca0249171de783423a 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.2+20201219) unstable; urgency=low
+ncurses6 (6.2+20201227) unstable; urgency=low
 
   * latest weekly patch
 
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sat, 19 Dec 2020 05:58:49 -0500
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 27 Dec 2020 18:48:19 -0500
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index af6d9d1e0fd0a0237cb8d634abe38c4c742477fa..d8eb402d647036eb9fd3b5e491819b29a8d3a851 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.434 2020/12/19 10:58:49 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.436 2020/12/27 23:48:19 tom Exp $\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "6"\r
 !define VERSION_MINOR "2"\r
 !define VERSION_YYYY  "2020"\r
 !define VERSION_MAJOR "6"\r
 !define VERSION_MINOR "2"\r
 !define VERSION_YYYY  "2020"\r
-!define VERSION_MMDD  "1219"\r
+!define VERSION_MMDD  "1227"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index 1daa90bf79bcbccab19dd048db42dca14678edc0..36cc6df4edc8e02178c48e7297cb3bf2cf350583 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.2
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.2
-Release: 20201219
+Release: 20201227
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index 7f858b0ae7c81ae9d03c33cce863b5f1e35507ea..c0e1642c538e266960cb23d57dd5a7757dd53747 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.2
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.2
-Release: 20201219
+Release: 20201227
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index b2d1334ebb5a075c421dd2367fdecf9b00d9009b..f3d7d66cd3fd47355e3e5d3476debc3506b749a0 100644 (file)
@@ -1,7 +1,7 @@
 Summary: Curses library with POSIX thread support.
 Name: ncursest6
 Version: 6.2
 Summary: Curses library with POSIX thread support.
 Name: ncursest6
 Version: 6.2
-Release: 20201219
+Release: 20201227
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index d6a4f5d7c9ca0c795b965a4469678f4da2982e5c..da3dcdf97a98ce84893dbad1efa24866a89bc8a6 100644 (file)
  */
 #include "panel.priv.h"
 
  */
 #include "panel.priv.h"
 
-MODULE_ID("$Id: p_delete.c,v 1.16 2020/09/26 23:58:55 tom Exp $")
+MODULE_ID("$Id: p_delete.c,v 1.17 2020/12/26 18:25:34 tom Exp $")
 
 PANEL_EXPORT(int)
 
 PANEL_EXPORT(int)
-del_panel(PANEL * pan)
+del_panel(PANEL *pan)
 {
   int err = OK;
 
 {
   int err = OK;
 
@@ -51,7 +51,7 @@ del_panel(PANEL * pan)
       GetHook(pan);
       HIDE_PANEL(pan, err, OK);
       dBug(("...discard ptr=%s", USER_PTR(pan->user, 1)));
       GetHook(pan);
       HIDE_PANEL(pan, err, OK);
       dBug(("...discard ptr=%s", USER_PTR(pan->user, 1)));
-      dBug(("...deleted pan=%p", pan));
+      dBug(("...deleted pan=%p", (void *)pan));
       free((void *)pan);
     }
   else
       free((void *)pan);
     }
   else
index 76f190a04a46f3843cf34e9c20cddd32daf11afd..a7c5a4e2db214d9f3c15a54632d5349bd6b4467b 100644 (file)
@@ -39,7 +39,7 @@
  */
 #include "panel.priv.h"
 
  */
 #include "panel.priv.h"
 
-MODULE_ID("$Id: p_new.c,v 1.21 2020/09/26 19:35:49 tom Exp $")
+MODULE_ID("$Id: p_new.c,v 1.22 2020/12/26 18:25:48 tom Exp $")
 
 #ifdef TRACE
 static char *stdscr_id;
 
 #ifdef TRACE
 static char *stdscr_id;
@@ -50,7 +50,7 @@ AllocPanel(const char *name)
 {
   PANEL *result = typeMalloc(PANEL, 1);
 
 {
   PANEL *result = typeMalloc(PANEL, 1);
 
-  _tracef("create :%s %p", name, result);
+  _tracef("create :%s %p", name, (void *)result);
   return result;
 }
 #define InitUser(name) \
   return result;
 }
 #define InitUser(name) \
@@ -78,7 +78,7 @@ root_panel(NCURSES_SP_DCL0)
   struct panelhook *ph = _nc_panelhook();
 #endif
 
   struct panelhook *ph = _nc_panelhook();
 #endif
 
-  if (_nc_stdscr_pseudo_panel == (PANEL *) 0)
+  if (_nc_stdscr_pseudo_panel == (PANEL *)0)
     {
 
       assert(SP_PARM && SP_PARM->_stdscr && !_nc_bottom_panel && !_nc_top_panel);
     {
 
       assert(SP_PARM && SP_PARM->_stdscr && !_nc_bottom_panel && !_nc_top_panel);
@@ -92,8 +92,8 @@ root_panel(NCURSES_SP_DCL0)
          WINDOW *win = SP_PARM->_stdscr;
 
          pan->win = win;
          WINDOW *win = SP_PARM->_stdscr;
 
          pan->win = win;
-         pan->below = (PANEL *) 0;
-         pan->above = (PANEL *) 0;
+         pan->below = (PANEL *)0;
+         pan->above = (PANEL *)0;
          InitUser(stdscr);
          _nc_bottom_panel = _nc_top_panel = pan;
        }
          InitUser(stdscr);
          _nc_bottom_panel = _nc_top_panel = pan;
        }
@@ -104,7 +104,7 @@ root_panel(NCURSES_SP_DCL0)
 PANEL_EXPORT(PANEL *)
 new_panel(WINDOW *win)
 {
 PANEL_EXPORT(PANEL *)
 new_panel(WINDOW *win)
 {
-  PANEL *pan = (PANEL *) 0;
+  PANEL *pan = (PANEL *)0;
 
   GetWindowHook(win);
 
 
   GetWindowHook(win);
 
@@ -120,8 +120,8 @@ new_panel(WINDOW *win)
   if (!(win->_flags & _ISPAD) && (pan = AllocPanel("new_panel")))
     {
       pan->win = win;
   if (!(win->_flags & _ISPAD) && (pan = AllocPanel("new_panel")))
     {
       pan->win = win;
-      pan->above = (PANEL *) 0;
-      pan->below = (PANEL *) 0;
+      pan->above = (PANEL *)0;
+      pan->below = (PANEL *)0;
       InitUser(new);
       (void)show_panel(pan);
     }
       InitUser(new);
       (void)show_panel(pan);
     }
index 4d3bb14270259a75e088f3552791a0ad77c6bea9..75bbe059cd0bd9b6a0a0cd1e9159b483eea4b87a 100644 (file)
@@ -40,7 +40,7 @@
 #include "termsort.c"          /* this C file is generated */
 #include <parametrized.h>      /* so is this */
 
 #include "termsort.c"          /* this C file is generated */
 #include <parametrized.h>      /* so is this */
 
-MODULE_ID("$Id: dump_entry.c,v 1.180 2020/11/14 18:18:13 tom Exp $")
+MODULE_ID("$Id: dump_entry.c,v 1.181 2020/12/26 18:25:18 tom Exp $")
 
 #define DISCARD(string) string = ABSENT_STRING
 #define PRINTF (void) printf
 
 #define DISCARD(string) string = ABSENT_STRING
 #define PRINTF (void) printf
@@ -1347,7 +1347,7 @@ kill_labels(TERMTYPE2 *tterm, int target)
     int n;
     int result = 0;
     char *cap;
     int n;
     int result = 0;
     char *cap;
-    char name[10];
+    char name[20];
 
     for (n = 0; n <= 10; ++n) {
        _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "lf%d", n);
 
     for (n = 0; n <= 10; ++n) {
        _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "lf%d", n);
@@ -1373,7 +1373,7 @@ kill_fkeys(TERMTYPE2 *tterm, int target)
     int n;
     int result = 0;
     char *cap;
     int n;
     int result = 0;
     char *cap;
-    char name[10];
+    char name[20];
 
     for (n = 60; n >= 0; --n) {
        _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "kf%d", n);
 
     for (n = 60; n >= 0; --n) {
        _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "kf%d", n);
index ea6c5222d188b6dbd0b32d9cb103a39748e74082..afe102931a68788f87d4cfe51edd0f7ba1eb0139 100644 (file)
@@ -27,7 +27,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: demo_defkey.c,v 1.30 2020/02/02 23:34:34 tom Exp $
+ * $Id: demo_defkey.c,v 1.31 2020/12/26 17:55:13 tom Exp $
  *
  * Demonstrate the define_key() function.
  * Thomas Dickey - 2002/11/23
  *
  * Demonstrate the define_key() function.
  * Thomas Dickey - 2002/11/23
@@ -74,7 +74,7 @@ log_last_line(WINDOW *win)
 static char *
 visichar(int ch)
 {
 static char *
 visichar(int ch)
 {
-    static char temp[10];
+    static char temp[20];
 
     ch = UChar(ch);
     assert(ch >= 0 && ch < 256);
 
     ch = UChar(ch);
     assert(ch >= 0 && ch < 256);
@@ -242,7 +242,7 @@ main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED)
      * keypad() initializes the corresponding data.
      */
     for (n = 0; n < 12; ++n) {
      * keypad() initializes the corresponding data.
      */
     for (n = 0; n < 12; ++n) {
-       char name[10];
+       char name[20];
        _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "kf%d", n + 1);
        fkeys[n] = tigetstr(name);
     }
        _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "kf%d", n + 1);
        fkeys[n] = tigetstr(name);
     }
index 3c4eb697a4de710a91be75b4e3aa3732bff09dbb..a2e4c430e03cfcb001574562281dbaf72ee36ab2 100644 (file)
@@ -27,7 +27,7 @@
  * authorization.                                                           *
  ****************************************************************************/
 /*
  * authorization.                                                           *
  ****************************************************************************/
 /*
- * $Id: picsmap.c,v 1.134 2020/07/11 23:01:49 tom Exp $
+ * $Id: picsmap.c,v 1.135 2020/12/26 18:04:03 tom Exp $
  *
  * Author: Thomas E. Dickey
  *
  *
  * Author: Thomas E. Dickey
  *
@@ -1612,7 +1612,7 @@ report_colors(PICS_HEAD * pics)
            for (k = 0; k < wide; ++k) {
                int n = j + (k * high);
                size_t want = (sizeof(buffer) - (size_t) (s - buffer));
            for (k = 0; k < wide; ++k) {
                int n = j + (k * high);
                size_t want = (sizeof(buffer) - (size_t) (s - buffer));
-               if (want < 100)
+               if (want < 100 || want >= sizeof(buffer))
                    break;
                if (n >= pics->colors)
                    break;
                    break;
                if (n >= pics->colors)
                    break;
index 6460c3147c75b18cac1b4c8d3dc55389bb10aa7d..71da53af3539d4bd5baa85b6261cb1441e5468c5 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: tclock.c,v 1.41 2020/01/18 16:46:35 tom Exp $ */
+/* $Id: tclock.c,v 1.42 2020/12/26 17:56:36 tom Exp $ */
 
 #define NEED_TIME_H
 #include <test.priv.h>
 
 #define NEED_TIME_H
 #include <test.priv.h>
@@ -140,7 +140,7 @@ main(int argc, char *argv[])
     bool odd = FALSE;
     time_t tim;
     struct tm *t;
     bool odd = FALSE;
     time_t tim;
     struct tm *t;
-    char szChar[10];
+    char szChar[20];
     char *text;
     short my_bg = COLOR_BLACK;
 #if HAVE_GETTIMEOFDAY
     char *text;
     short my_bg = COLOR_BLACK;
 #if HAVE_GETTIMEOFDAY
index a8ba223e524ad5136a1f17f6517eea5f6d73b624..13a3b64719efffd68bd826552d14e9325fed8b93 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env perl
 #!/usr/bin/env perl
-# $Id: tracemunch,v 1.32 2020/09/26 19:40:55 tom Exp $
+# $Id: tracemunch,v 1.33 2020/12/26 23:56:50 tom Exp $
 ##############################################################################
 # Copyright 2018-2019,2020 Thomas E. Dickey                                  #
 # Copyright 1998-2005,2017 Free Software Foundation, Inc.                    #
 ##############################################################################
 # Copyright 2018-2019,2020 Thomas E. Dickey                                  #
 # Copyright 1998-2005,2017 Free Software Foundation, Inc.                    #
@@ -511,6 +511,8 @@ sub muncher($) {
 
       CLASSIFY: {
 
 
       CLASSIFY: {
 
+            next unless $_;
+
             # just in case someone tries a file with cr/lf line-endings:
             $_ =~ s/\r\n/\n/g;
             $_ =~ s/\r/\n/g;
             # just in case someone tries a file with cr/lf line-endings:
             $_ =~ s/\r\n/\n/g;
             $_ =~ s/\r/\n/g;