Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: configure - use ncurses (not only ncursesw) before tinfo
- X-seq: zsh-workers 44712
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: PATCH: configure - use ncurses (not only ncursesw) before tinfo
- Date: Tue, 27 Aug 2019 04:32:15 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EWwBTDhsjaQ+MjXtkuvCTiZflPXEWrayXbN8xsz5YoE=; b=bTfks2SwfrimFc5qBG3EvBr/MK7Vq0zN7ZTbaBjZV6ytIP7Qu6My3kSlrLsgfUIxOw kO1CCh9aS3rp7NvWzX2dqZoqKqwC+m/PDF5cRaTWhkwAu1p9PjSVViAv8YojcKovAfU3 Mua9BkScYcsTN30k7alGGA8GTFsU7VL2RFnpjlmeQu7euz884jUnmCYEsimoVU8ZMZgw L/Xl9JX1rSyANwF93+rordCypdk9BdU/2Kckr7sQpoyL3pol9sSLJErFxu68f8o1PB3T SDLxpj+Xrz3TTu2Ss7D/az4zCGWJ83PvxZCc5EfqFHXw3zPWqoFj1VmfkQP8l8BULDbs SdRA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
I've noticed that Zsh shipped with Mageia doesn't include zsh/curses
module. Trying to build Zsh revealed the cause: Mageia ships with
libncurses, not libncursesw and the relevant part in configure.ac
says:
termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses" ;;
The width of the curses library is irrelevant to Zsh - it only needs
the terminal sequences from the library, which aren't associated to
any Unicode topic. As for the part that actually is relevant to the
Unicode - the zsh/curses module - it is still better to build it
without the multibyte support than not to build it at all.
Not to say that libncurses libraries today do have multibyte support.
So the conservative terminal-library order doesn't have any support in
reality. The patch changes the order to:
termcap_curses_order="$ncursesw_test $ncurses_test tinfo termcap curses" ;;
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
From 4038724a554f9b6dae228bdbabcb0822c31163f7 Mon Sep 17 00:00:00 2001
From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
Date: Tue, 27 Aug 2019 04:16:06 +0200
Subject: [PATCH] =?UTF-8?q?configure=20=E2=80=93=20use=20ncurses=20(not=20?=
=?UTF-8?q?only=20ncursesw)=20before=20tinfo=20and=20termcap?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 8a2664ed2..9ccf17b84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -774,7 +774,7 @@ AS_HELP_STRING([--with-term-lib=LIBS],[search space-separated LIBS for terminal
termcap_curses_order="$withval"
AC_SEARCH_LIBS(tigetstr, [$termcap_curses_order])
else
- termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses"
+ termcap_curses_order="$ncursesw_test $ncurses_test tinfo termcap curses"
fi],
[case "$host_os" in
solaris*)
@@ -783,7 +783,7 @@ fi],
DL_EXT="${DL_EXT=sl}"
termcap_curses_order="Hcurses $ncursesw_test $ncurses_test curses termcap" ;;
*)
- termcap_curses_order="$ncursesw_test tinfo termcap $ncurses_test curses" ;;
+ termcap_curses_order="$ncursesw_test $ncurses_test tinfo termcap curses" ;;
esac])dnl
AH_TEMPLATE([ZSH_NO_XOPEN],
--
2.21.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author