zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: Peter Stephenson <pws@csr.com>
Cc: Zsh hackers list <zsh-workers@sunsite.auc.dk>
Subject: Re: PATCH: termcap/terminfo support in modules
Date: Tue, 5 Dec 2000 20:11:14 -0500	[thread overview]
Message-ID: <20001205201114.A14193@dman.com> (raw)
In-Reply-To: <0G53002DHD17BT@la-la.cambridgesiliconradio.com>; from pws@csr.com on Tue, Dec 05, 2000 at 10:55:56AM +0000

> 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'.

The same applies to $terminfo:

Index: Src/Modules/terminfo.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/terminfo.c,v
retrieving revision 1.3
diff -u -r1.3 terminfo.c
--- Src/Modules/terminfo.c	2000/12/05 11:00:08	1.3
+++ Src/Modules/terminfo.c	2000/12/06 01:01:45
@@ -165,7 +165,7 @@
 	pm->u.str = num ? dupstring("yes") : dupstring("no");
 	pm->flags |= PM_SCALAR;
     }
-    else if ((tistr = (char *)tigetstr(name)) != NULL)
+    else if ((tistr = (char *)tigetstr(name)) != NULL && tistr != (char *)-1)
     {
 	pm->u.str = dupstring(tistr);
 	pm->flags |= PM_SCALAR;


      reply	other threads:[~2000-12-06  1:11 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
2000-12-06  1:11                 ` Clint Adams [this message]

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=20001205201114.A14193@dman.com \
    --to=schizo@debian.org \
    --cc=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).