-- sale, use or other dealings in this Software without prior written --
-- authorization. --
-------------------------------------------------------------------------------
--- $Id: NEWS,v 1.3556 2020/09/06 20:05:44 tom Exp $
+-- $Id: NEWS,v 1.3558 2020/09/07 16:47:17 tom Exp $
-------------------------------------------------------------------------------
This is a log of changes that ncurses has gone through since Zeyd started
Changes through 1.9.9e did not credit all contributions;
it is not possible to add this information.
+20200907
+ + fix regression in setupterm validating non-empty $TERM (report by
+ Soren Tempel).
+
20200906
+ merge/adapt in-progress work by Juergen Pfeifer for new version of
win32-driver.
-5:0:10 6.2 20200906
+5:0:10 6.2 20200907
# use or other dealings in this Software without prior written #
# authorization. #
##############################################################################
-# $Id: dist.mk,v 1.1373 2020/09/06 20:05:44 tom Exp $
+# $Id: dist.mk,v 1.1374 2020/09/07 14:22:04 tom Exp $
# Makefile for creating ncurses distributions.
#
# This only needs to be used directly as a makefile by developers, but
# These define the major/minor/patch versions of ncurses.
NCURSES_MAJOR = 6
NCURSES_MINOR = 2
-NCURSES_PATCH = 20200906
+NCURSES_PATCH = 20200907
# We don't append the patch to the version, since this only applies to releases
VERSION = $(NCURSES_MAJOR).$(NCURSES_MINOR)
* Author: Thomas Dickey, 2008-on *
****************************************************************************/
-/* $Id: nc_win32.h,v 1.7 2020/09/06 20:53:55 tom Exp $ */
+/* $Id: nc_win32.h,v 1.8 2020/09/07 14:27:05 tom Exp $ */
#ifndef NC_WIN32_H
#define NC_WIN32_H 1
extern NCURSES_EXPORT(int) _nc_console_checkmintty(int fd, LPHANDLE pMinTTY);
#endif
-#undef CHECK_TERM_ENV
+#undef VALID_TERM_ENV
#define MS_TERMINAL "ms-terminal"
-#define CHECK_TERM_ENV(term_env, no_terminal) \
+#define VALID_TERM_ENV(term_env, no_terminal) \
(term_env = (NonEmpty(term_env) \
? term_env \
: (_nc_console_vt_supported() \
? MS_TERMINAL \
: no_terminal)), \
- !NonEmpty(term_env))
+ NonEmpty(term_env))
/*
* Various Console mode definitions
#include <sys/termio.h> /* needed for ISC */
#endif
-MODULE_ID("$Id: lib_initscr.c,v 1.47 2020/09/06 20:48:55 tom Exp $")
+MODULE_ID("$Id: lib_initscr.c,v 1.48 2020/09/07 14:26:48 tom Exp $")
NCURSES_EXPORT(WINDOW *)
initscr(void)
_nc_globals.init_screen = TRUE;
env = getenv("TERM");
- (void) CHECK_TERM_ENV(env, "unknown");
+ (void) VALID_TERM_ENV(env, "unknown");
if ((name = strdup(env)) == NULL) {
fprintf(stderr, "Error opening allocating $TERM.\n");
****************************************************************************/
/*
- * $Id: curses.priv.h,v 1.636 2020/09/06 20:53:41 tom Exp $
+ * $Id: curses.priv.h,v 1.637 2020/09/07 14:27:13 tom Exp $
*
* curses.priv.h
*
#define NO_TERMINAL 0
#endif
-#define CHECK_TERM_ENV(term_env, no_terminal) \
+#define VALID_TERM_ENV(term_env, no_terminal) \
(term_env = (NonEmpty(term_env) \
? term_env \
: no_terminal), \
- !NonEmpty(term_env))
+ NonEmpty(term_env))
/*
* Note: ht/cbt expansion flakes out randomly under Linux 1.1.47, but only
#include <locale.h>
#endif
-MODULE_ID("$Id: lib_setup.c,v 1.210 2020/09/06 21:03:33 tom Exp $")
+MODULE_ID("$Id: lib_setup.c,v 1.211 2020/09/07 16:37:19 tom Exp $")
/****************************************************************************
*
if (tname == 0) {
tname = getenv("TERM");
-#if defined(USE_TERM_DRIVER) && !defined(EXP_WIN32_DRIVER)
+#if defined(EXP_WIN32_DRIVER)
+ if (!VALID_TERM_ENV(tname, NO_TERMINAL)) {
+ T(("Failure with TERM=%s", NonNull(tname)));
+ ret_error0(TGETENT_ERR, "TERM environment variable not set.\n");
+ }
+#elif defined(USE_TERM_DRIVER)
if (!NonEmpty(tname))
tname = "unknown";
#else
- if (!CHECK_TERM_ENV(tname, NO_TERMINAL)) {
- T(("Failure with TERM=%s", tname));
+ if (!NonEmpty(tname)) {
+ T(("Failure with TERM=%s", NonNull(tname)));
ret_error0(TGETENT_ERR, "TERM environment variable not set.\n");
}
#endif
-ncurses6 (6.2+20200906) unstable; urgency=low
+ncurses6 (6.2+20200907) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey <dickey@invisible-island.net> Sun, 06 Sep 2020 16:05:44 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net> Mon, 07 Sep 2020 10:22:04 -0400
ncurses6 (5.9-20131005) unstable; urgency=low
-ncurses6 (6.2+20200906) unstable; urgency=low
+ncurses6 (6.2+20200907) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey <dickey@invisible-island.net> Sun, 06 Sep 2020 16:05:44 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net> Mon, 07 Sep 2020 10:22:04 -0400
ncurses6 (5.9-20131005) unstable; urgency=low
-ncurses6 (6.2+20200906) unstable; urgency=low
+ncurses6 (6.2+20200907) unstable; urgency=low
* latest weekly patch
- -- Thomas E. Dickey <dickey@invisible-island.net> Sun, 06 Sep 2020 16:05:44 -0400
+ -- Thomas E. Dickey <dickey@invisible-island.net> Mon, 07 Sep 2020 10:22:04 -0400
ncurses6 (5.9-20120608) unstable; urgency=low
-; $Id: mingw-ncurses.nsi,v 1.417 2020/09/06 20:05:44 tom Exp $\r
+; $Id: mingw-ncurses.nsi,v 1.418 2020/09/07 14:22:04 tom Exp $\r
\r
; TODO add examples\r
; TODO bump ABI to 6\r
!define VERSION_MAJOR "6"\r
!define VERSION_MINOR "2"\r
!define VERSION_YYYY "2020"\r
-!define VERSION_MMDD "0906"\r
+!define VERSION_MMDD "0907"\r
!define VERSION_PATCH ${VERSION_YYYY}${VERSION_MMDD}\r
\r
!define MY_ABI "5"\r
Summary: shared libraries for terminal handling
Name: mingw32-ncurses6
Version: 6.2
-Release: 20200906
+Release: 20200907
License: X11
Group: Development/Libraries
Source: ncurses-%{version}-%{release}.tgz
Summary: shared libraries for terminal handling
Name: ncurses6
Version: 6.2
-Release: 20200906
+Release: 20200907
License: X11
Group: Development/Libraries
Source: ncurses-%{version}-%{release}.tgz
Summary: Curses library with POSIX thread support.
Name: ncursest6
Version: 6.2
-Release: 20200906
+Release: 20200907
License: X11
Group: Development/Libraries
Source: ncurses-%{version}-%{release}.tgz