]> ncurses.scripts.mit.edu Git - ncurses.git/commitdiff
ncurses 5.9 - patch 20150329
authorThomas E. Dickey <dickey@invisible-island.net>
Sun, 29 Mar 2015 17:28:34 +0000 (17:28 +0000)
committerThomas E. Dickey <dickey@invisible-island.net>
Sun, 29 Mar 2015 17:28:34 +0000 (17:28 +0000)
+ correct cut/paste error for "--enable-ext-putwin" that made it the
  same as "--enable-ext-colors" (report by Roumen Petrov)

12 files changed:
NEWS
VERSION
configure
configure.in
dist.mk
ncurses/base/lib_screen.c
package/debian-mingw/changelog
package/debian-mingw64/changelog
package/debian/changelog
package/mingw-ncurses.nsi
package/mingw-ncurses.spec
package/ncurses.spec

diff --git a/NEWS b/NEWS
index a2deff1fc41c10b40bcd9b4f77d763981ac6277b..f854d9e448ff096f2195d8717e5925c8b0a9c20e 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.2363 2015/03/28 21:50:39 tom Exp $
+-- $Id: NEWS,v 1.2365 2015/03/29 14:38:58 tom Exp $
 -------------------------------------------------------------------------------
 
 This is a log of changes that ncurses has gone through since Zeyd started
@@ -45,6 +45,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.
 
+20150329
+       + correct cut/paste error for "--enable-ext-putwin" that made it the
+         same as "--enable-ext-colors" (report by Roumen Petrov)
+
 20150328
        + add "-f" option to test/savescreen.c to help with testing/debugging
          the extended putwin/getwin.
diff --git a/VERSION b/VERSION
index 7efef8b070a37787aa01f88aa0a9bab105dc8a35..3d0fb4fefe4512812f67f03fca3f9dafad49df1a 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5:0:9  5.9     20150328
+5:0:9  5.9     20150329
index 8e1e66b776844da62fc6144289894e7a3df5d872..61fa203d25488ed0c12aafd124f8f80a850b9f92 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.600 .
+# From configure.in Revision: 1.601 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by Autoconf 2.52.20141204.
 #
@@ -11646,9 +11646,9 @@ fi
 echo "$as_me:11646: checking if you want to use extended putwin/screendump" >&5
 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
 
-# Check whether --enable-ext-colors or --disable-ext-colors was given.
-if test "${enable_ext_colors+set}" = set; then
-  enableval="$enable_ext_colors"
+# Check whether --enable-ext-putwin or --disable-ext-putwin was given.
+if test "${enable_ext_putwin+set}" = set; then
+  enableval="$enable_ext_putwin"
   with_ext_putwin=$enableval
 else
   with_ext_putwin=no
index 67e1535dba5d27c8a50b4661849894407f4cf68c..0d5624be0ab9e03ede73195416bc071e53407c71 100644 (file)
@@ -28,14 +28,14 @@ dnl***************************************************************************
 dnl
 dnl Author: Thomas E. Dickey 1995-on
 dnl
-dnl $Id: configure.in,v 1.600 2015/03/27 10:48:27 tom Exp $
+dnl $Id: configure.in,v 1.601 2015/03/29 14:33:54 tom Exp $
 dnl Process this file with autoconf to produce a configure script.
 dnl
 dnl See http://invisible-island.net/autoconf/ for additional information.
 dnl
 dnl ---------------------------------------------------------------------------
 AC_PREREQ(2.52.20030208)
-AC_REVISION($Revision: 1.600 $)
+AC_REVISION($Revision: 1.601 $)
 AC_INIT(ncurses/base/lib_initscr.c)
 AC_CONFIG_HEADER(include/ncurses_cfg.h:include/ncurses_cfg.hin)
 
@@ -1078,7 +1078,7 @@ AC_SUBST(NCURSES_MOUSE_VERSION)
 
 ###   use option --enable-ext-putwin to turn on extended screendumps
 AC_MSG_CHECKING(if you want to use extended putwin/screendump)
-AC_ARG_ENABLE(ext-colors,
+AC_ARG_ENABLE(ext-putwin,
        [  --enable-ext-putwin     compile with extended putwin/screendump],
        [with_ext_putwin=$enableval],
        [with_ext_putwin=no])
diff --git a/dist.mk b/dist.mk
index 5ecb09821ae5024a9130cf03778b9da17be7fab3..bab612a7cd355e32efa2e74f07dfa4b52e4898f9 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.1040 2015/03/27 10:27:01 tom Exp $
+# $Id: dist.mk,v 1.1041 2015/03/29 14:32:33 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 = 5
 NCURSES_MINOR = 9
-NCURSES_PATCH = 20150328
+NCURSES_PATCH = 20150329
 
 # We don't append the patch to the version, since this only applies to releases
 VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
index 8569a556c79488d1e61acabe1c1f28e690866f27..4d310be286028a726dde52d995228bd2abec5a5f 100644 (file)
@@ -41,7 +41,7 @@
 #define CUR SP_TERMTYPE
 #endif
 
-MODULE_ID("$Id: lib_screen.c,v 1.70 2015/03/29 00:16:00 tom Exp $")
+MODULE_ID("$Id: lib_screen.c,v 1.72 2015/03/29 15:25:29 tom Exp $")
 
 #define MAX_SIZE 0x3fff                /* 16k is big enough for a window or pad */
 
@@ -321,7 +321,7 @@ decode_chtype(char *source, chtype fillin, chtype *target)
     T(("decode_chtype '%s'", source));
     source = decode_attr(source, &attr, &color);
     source = decode_char(source, &value);
-    *target = ChCharOf(value) | attr | COLOR_PAIR(color);
+    *target = (ChCharOf(value) | attr | (chtype) COLOR_PAIR(color));
     /* FIXME - ignore combining characters */
     return source;
 }
@@ -334,6 +334,7 @@ decode_cchar(char *source, cchar_t *fillin, cchar_t *target)
     attr_t attr = fillin->attr;
     wchar_t chars[CCHARW_MAX];
     int append = 0;
+    int value = 0;
 
     T(("decode_cchar  '%s'", source));
     *target = blank;
@@ -344,14 +345,14 @@ decode_cchar(char *source, cchar_t *fillin, cchar_t *target)
 #endif
     source = decode_attr(source, &attr, &color);
     memset(chars, 0, sizeof(chars));
-    source = decode_char(source, &chars[0]);
+    source = decode_char(source, &value);
+    chars[0] = (wchar_t) value;
     /* handle combining characters */
     while (source[0] == MARKER && source[1] == APPEND) {
-       int value;
        source += 2;
        source = decode_char(source, &value);
        if (append++ < CCHARW_MAX) {
-           chars[append] = value;
+           chars[append] = (wchar_t) value;
        }
     }
     setcchar(target, chars, attr, (short) color, NULL);
@@ -694,21 +695,22 @@ encode_cell(char *target, CARG_CH_T source, CARG_CH_T previous)
     }
 #endif
     for (n = 0; n < SIZEOF(source->chars); ++n) {
-       if (source->chars[n] == 0)
+       unsigned uch = source->chars[n];
+       if (uch == 0)
            continue;
        if (n) {
            *target++ = MARKER;
            *target++ = APPEND;
        }
        *target++ = MARKER;
-       if (source->chars[n] > 0xffff) {
-           sprintf(target, "U%08x", source->chars[n]);
-       } else if (source->chars[n] > 0xff) {
-           sprintf(target, "u%04x", source->chars[n]);
-       } else if (source->chars[n] < 32 || source->chars[n] >= 127) {
-           sprintf(target, "%03o", source->chars[n] & 0xff);
+       if (uch > 0xffff) {
+           sprintf(target, "U%08x", uch);
+       } else if (uch > 0xff) {
+           sprintf(target, "u%04x", uch);
+       } else if (uch < 32 || uch >= 127) {
+           sprintf(target, "%03o", uch & 0xff);
        } else {
-           switch (source->chars[n]) {
+           switch (uch) {
            case ' ':
                strcpy(target, "s");
                break;
@@ -717,7 +719,7 @@ encode_cell(char *target, CARG_CH_T source, CARG_CH_T previous)
                *target = '\0';
                break;
            default:
-               sprintf(--target, "%c", source->chars[n]);
+               sprintf(--target, "%c", uch);
                break;
            }
        }
index c31d09fe7ade39eb6943ee11115e12c8a2eaada0..dd8d4708d7be1629118d400dbf78672523af26a4 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (5.9+20150328) unstable; urgency=low
+ncurses6 (5.9+20150329) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Fri, 27 Mar 2015 06:27:01 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 29 Mar 2015 10:32:33 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index c31d09fe7ade39eb6943ee11115e12c8a2eaada0..dd8d4708d7be1629118d400dbf78672523af26a4 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (5.9+20150328) unstable; urgency=low
+ncurses6 (5.9+20150329) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Fri, 27 Mar 2015 06:27:01 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 29 Mar 2015 10:32:33 -0400
 
 ncurses6 (5.9-20131005) unstable; urgency=low
 
index 4fd108c38363198de33b9381904e09fcdac4a4d1..9982b33d029305902edc9980fe6c50bbf117cc22 100644 (file)
@@ -1,8 +1,8 @@
-ncurses6 (5.9+20150328) unstable; urgency=low
+ncurses6 (5.9+20150329) unstable; urgency=low
 
   * latest weekly patch
 
- -- Thomas E. Dickey <dickey@invisible-island.net>  Fri, 27 Mar 2015 06:27:01 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net>  Sun, 29 Mar 2015 10:32:33 -0400
 
 ncurses6 (5.9-20120608) unstable; urgency=low
 
index 952dd9d128e542fd611b353fa671593595611507..bfb24012aa3b97b596c979f16ae203f99029d11f 100644 (file)
@@ -1,4 +1,4 @@
-; $Id: mingw-ncurses.nsi,v 1.93 2015/03/27 10:27:01 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.94 2015/03/29 14:32:33 tom Exp $\r
 \r
 ; TODO add examples\r
 ; TODO bump ABI to 6\r
@@ -10,7 +10,7 @@
 !define VERSION_MAJOR "5"\r
 !define VERSION_MINOR "9"\r
 !define VERSION_YYYY  "2015"\r
-!define VERSION_MMDD  "0328"\r
+!define VERSION_MMDD  "0329"\r
 !define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
 \r
 !define MY_ABI   "5"\r
index bedf564a63d31d8b352b632fc1bf3b9b161eb093..58a627c74c32dbb31864d5b700cdcdd5749d8979 100644 (file)
@@ -3,7 +3,7 @@
 Summary: shared libraries for terminal handling
 Name: mingw32-ncurses6
 Version: 5.9
-Release: 20150328
+Release: 20150329
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz
index f61c4de126ea183ad3b04750aefa4d05fdded4ef..850a06e3b598a49db0e2fc38cbe99404e2eb8cf9 100644 (file)
@@ -1,7 +1,7 @@
 Summary: shared libraries for terminal handling
 Name: ncurses6
 Version: 5.9
-Release: 20150328
+Release: 20150329
 License: X11
 Group: Development/Libraries
 Source: ncurses-%{version}-%{release}.tgz