zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: PATCH: termcap/terminfo support in modules
Date: Tue, 05 Dec 2000 10:55:56 +0000	[thread overview]
Message-ID: <0G53002DHD17BT@la-la.cambridgesiliconradio.com> (raw)
In-Reply-To: "Your message of Tue, 05 Dec 2000 10:42:09 GMT." <0G53002BKCE9BT@la-la.cambridgesiliconradio.com>

> A bigger problem is that the configure variable is wrongly named.

Sorry to keep sending short messages on the same thing, but:

% echoti foo
zsh: segmentation fault (core dumped)  zsh

The culprit appears to be tigetstr(s) on Solaris 2.6 returning 0xffffffff,
which looks a lot like -1.  Indeed, although the manual entry claims
blithely at the end `routines that return pointers always return NULL on
error', it seems this returns -1 to indicate `not a string value'.

Index: Src/Modules/terminfo.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/terminfo.c,v
retrieving revision 1.2
diff -u -r1.2 terminfo.c
--- Src/Modules/terminfo.c	2000/12/05 00:28:46	1.2
+++ Src/Modules/terminfo.c	2000/12/05 10:55:33
@@ -67,7 +67,7 @@
     
 /* get a string-type capability */
     t = (char *)tigetstr(s);
-    if (!t || !*t) {
+    if (!t || t == (char *)-1 || !*t) {
 	/* capability doesn't exist, or (if boolean) is off */
 	zwarnnam(name, "no such terminfo capability: %s", s, 0);
 	return 1;


-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070


  reply	other threads:[~2000-12-05 10:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-03 20:48 Clint Adams
2000-12-04 16:38 ` Bart Schaefer
2000-12-04 16:46   ` Clint Adams
2000-12-04 17:05     ` Peter Stephenson
2000-12-04 17:27       ` Bart Schaefer
2000-12-05  0:23         ` Clint Adams
2000-12-05  2:17           ` Vin Shelton
2000-12-05  4:21             ` PATCH: texinfo (Re: PATCH: termcap/terminfo support in modules) Bart Schaefer
2000-12-05 10:04           ` PATCH: termcap/terminfo support in modules Peter Stephenson
2000-12-05 10:42             ` Peter Stephenson
2000-12-05 10:55               ` Peter Stephenson [this message]
2000-12-06  1:11                 ` Clint Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0G53002DHD17BT@la-la.cambridgesiliconradio.com \
    --to=pws@csr.com \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).