]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 6.0 - patch 20170902
authorThomas E. Dickey <dickey@invisible-island.net>
Sat, 2 Sep 2017 22:52:02 +0000 (22:52 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Sat, 2 Sep 2017 22:52:02 +0000 (22:52 +0000)
+ amend change for endwin-state for better consistency with the older
  logic (report/patch by Jeb Rosen, cf: 20170722).
+ modify check in fmt_entry() to handle a cancelled reset string
  (Debian #873746).  Make similar fixes in other parts of dump_entry.c
  and tput.c

12 files changed:
NEWS
VERSION
dist.mk
ncurses/tty/tty_update.c
package/debian-mingw/changelog
package/debian-mingw64/changelog
package/debian/changelog
package/mingw-ncurses.nsi
package/mingw-ncurses.spec
package/ncurses.spec
progs/dump_entry.c
progs/tput.c

diff --git a/NEWS b/NEWS
index 27e0e24006a17614ae7a21317b01a39f9fb84589..936c9409d33cfdb2c3e812a6696029be6900868e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -25,7 +25,7 @@
 -- sale, use or other dealings in this Software without prior written        --
 -- authorization.                                                            --
 -------------------------------------------------------------------------------
--- $Id: NEWS,v 1.2937 2017/08/27 18:35:58 tom Exp $
+-- $Id: NEWS,v 1.2939 2017/09/02 21:48:17 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -45,6 +45,13 @@ 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.
 
+20170902
+       + amend change for endwin-state for better consistency with the older
+         logic (report/patch by Jeb Rosen, cf: 20170722).
+       + modify check in fmt_entry() to handle a cancelled reset string
+         (Debian #873746).  Make similar fixes in other parts of dump_entry.c
+         and tput.c
+
 20170827
        + fix a bug in repeat_char logic (cf: 20170729, report by Chris Clayton).
 
diff --git a/VERSION b/VERSION
index cdd3e048bb35cd6d709cdf9d9b274932fecd2638..db7e2867c2656f984448639d1c27da1a428aea8b 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:9  6.0     20170827
+5:0:9  6.0     20170902
diff --git a/dist.mk b/dist.mk
index 0da7f27084fd7078692ebb1d8d2de06d487bed1e..77f8ec805dd6ea0dac015ec318208ef74bd780f6 100644 (file)
--- a/dist.mk
+++ b/dist.mk
@@ -25,7 +25,7 @@
 # use or other dealings in this Software without prior written               #
 # authorization.                                                             #
 ##############################################################################
-# $Id: dist.mk,v 1.1180 2017/08/27 15:37:47 tom Exp $
+# $Id: dist.mk,v 1.1181 2017/08/29 22:24:15 tom Exp $
 # Makefile for creating ncurses distributions.
 #
 # This only needs to be used directly as a makefile by developers, but
@@ -37,7 +37,7 @@ SHELL = /bin/sh
 # These define the major/minor/patch versions of ncurses.
 NCURSES_MAJOR = 6
 NCURSES_MINOR = 0
-NCURSES_PATCH = 20170827
+NCURSES_PATCH = 20170902
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index f86ee7292f78c78c7568b9a62c25a884faf6fc96..b5151b94ed2763de2b548c3e410574f031dde3e4 100644 (file)
@@ -84,7 +84,7 @@
 
 #include <ctype.h>
 
-MODULE_ID("$Id: tty_update.c,v 1.296 2017/08/27 19:40:17 tom Exp $")
+MODULE_ID("$Id: tty_update.c,v 1.297 2017/09/02 21:45:44 Jeb.Rosen Exp $")
 
 /*
  * This define controls the line-breakout optimization.  Every once in a
@@ -831,7 +831,7 @@ TINFO_DOUPDATE(NCURSES_SP_DCL0)
        SP_PARM->_fifohold--;
 
 #if USE_SIZECHANGE
-    if ((SP_PARM->_endwin == ewRunning)
+    if ((SP_PARM->_endwin == ewSuspend)
        || _nc_handle_sigwinch(SP_PARM)) {
        /*
         * This is a transparent extension:  XSI does not address it,
index 32c40df284d6eee6454c52b239775bf8fa5c3b01..6b66e2b429193edbaad8e8646f97fdef41247e80 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.0+20170827) unstable; urgency=low
+ncurses6 (6.0+20170902) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 27 Aug 2017 11:37:47 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Tue, 29 Aug 2017 18:24:15 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 32c40df284d6eee6454c52b239775bf8fa5c3b01..6b66e2b429193edbaad8e8646f97fdef41247e80 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.0+20170827) unstable; urgency=low
+ncurses6 (6.0+20170902) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 27 Aug 2017 11:37:47 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Tue, 29 Aug 2017 18:24:15 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 2f880e57625481140455db0a5fa3719953bad895..c032d2fdbeb29b0df81054b7930ed40d8e8fe731 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (6.0+20170827) unstable; urgency=low
+ncurses6 (6.0+20170902) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 27 Aug 2017 11:37:47 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Tue, 29 Aug 2017 18:24:15 -0400
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index c0d4a4bc79e68ceb8dc4bf4917a5dd70a60a9e01..34dfb838a2c7ef1a7133959dd65f1aab820410b6 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.228 2017/08/27 15:37:47 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.229 2017/08/29 22:24:15 tom Exp $\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "6"\r
 !define VERSION_MINOR "0"\r
 !define VERSION_YYYY  "2017"\r
-!define VERSION_MMDD  "0827"\r
+!define VERSION_MMDD  "0902"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index c21b81fece9f01972d91d91df0da4e240ab1b1ca..07d003ea9385421a9cd370afd7d678156feed435 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 6.0
-Release: 20170827
+Release: 20170902
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index baf94fa8dcb73c239a7f2c493206a9f58276a15f..15129a717314848c72e290f9641eeb86efc4c075 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 6.0
-Release: 20170827
+Release: 20170902
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index 3efe05f4f550229454e858d5f5c15144b4b80607..3b1fcb1e10ae75d779e4ca8b8719142ad3f3d0e1 100644 (file)
@@ -39,7 +39,7 @@
 #include "termsort.c"          /* this C file is generated */
 #include <parametrized.h>      /* so is this */
 
-MODULE_ID("$Id: dump_entry.c,v 1.167 2017/07/15 21:22:01 tom Exp $")
+MODULE_ID("$Id: dump_entry.c,v 1.168 2017/09/02 21:01:54 tom Exp $")
 
 #define DISCARD(string) string = ABSENT_STRING
 #define PRINTF (void) printf
@@ -987,12 +987,12 @@ fmt_entry(TERMTYPE2 *tterm,
 #undef CUR
 #define CUR tterm->
     if (outform == F_TERMCAP) {
-       if (termcap_reset != ABSENT_STRING) {
-           if (init_3string != ABSENT_STRING
+       if (VALID_STRING(termcap_reset)) {
+           if (VALID_STRING(init_3string)
                && !strcmp(init_3string, termcap_reset))
                DISCARD(init_3string);
 
-           if (reset_2string != ABSENT_STRING
+           if (VALID_STRING(reset_2string)
                && !strcmp(reset_2string, termcap_reset))
                DISCARD(reset_2string);
        }
@@ -1068,7 +1068,7 @@ fmt_entry(TERMTYPE2 *tterm,
        buffer[0] = '\0';
 
        if (predval != FAIL) {
-           if (capability != ABSENT_STRING
+           if (VALID_STRING(capability)
                && i + 1 > num_strings)
                num_strings = i + 1;
 
@@ -1148,8 +1148,7 @@ fmt_entry(TERMTYPE2 *tterm,
            }
        }
        /* e.g., trimmed_sgr0 */
-       if (capability != ABSENT_STRING &&
-           capability != CANCELLED_STRING &&
+       if (VALID_STRING(capability) &&
            capability != tterm->Strings[i])
            free(capability);
     }
@@ -1320,7 +1319,8 @@ kill_labels(TERMTYPE2 *tterm, int target)
 
     for (n = 0; n <= 10; ++n) {
        _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "lf%d", n);
-       if ((cap = find_string(tterm, name)) != ABSENT_STRING
+       cap = find_string(tterm, name);
+       if (VALID_STRING(cap)
            && kill_string(tterm, cap)) {
            target -= (int) (strlen(cap) + 5);
            ++result;
@@ -1345,7 +1345,8 @@ kill_fkeys(TERMTYPE2 *tterm, int target)
 
     for (n = 60; n >= 0; --n) {
        _nc_SPRINTF(name, _nc_SLIMIT(sizeof(name)) "kf%d", n);
-       if ((cap = find_string(tterm, name)) != ABSENT_STRING
+       cap = find_string(tterm, name);
+       if (VALID_STRING(cap)
            && kill_string(tterm, cap)) {
            target -= (int) (strlen(cap) + 5);
            ++result;
@@ -1367,7 +1368,7 @@ one_one_mapping(const char *mapping)
 {
     bool result = TRUE;
 
-    if (mapping != ABSENT_STRING) {
+    if (VALID_STRING(mapping)) {
        int n = 0;
        while (mapping[n] != '\0') {
            if (isLine(mapping[n]) &&
index 9bcde00054f32e57686cbb2efd5aa7d0f7ea1eca..3295d18e6819574fa79477d6d15a0401e707afe6 100644 (file)
@@ -50,7 +50,7 @@
 #include <transform.h>
 #include <tty_settings.h>
 
-MODULE_ID("$Id: tput.c,v 1.71 2017/08/19 13:44:27 tom Exp $")
+MODULE_ID("$Id: tput.c,v 1.72 2017/09/02 21:03:26 tom Exp $")
 
 #define PUTS(s)                fputs(s, stdout)
 
@@ -214,7 +214,7 @@ tput_cmd(int fd, TTY * saved_settings, bool opt_x, int argc, char *argv[])
        }
 #endif
        quit(4, "unknown terminfo capability '%s'", name);
-    } else if (s != ABSENT_STRING) {
+    } else if (VALID_STRING(s)) {
        if (argc > 1) {
            int k;
            int ignored;