Subject: Re: tgetstr bug
To: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
From: Thomas Dickey <dickey@radix.net>
List: tech-userlevel
Date: 12/17/2006 06:52:20
--XsQoSWH+UP9D9v3l
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Dec 17, 2006 at 09:34:39AM +0000, Valeriy E. Ushakov wrote:
> Christos Zoulas <christos@astron.com> wrote:
> > By making tgetstr(id, NULL) work, we are encouraging non-portable
> > behavior.
>=20
> Hmm, why is that non-portable?  I read TOG text as that tgetstr
> returns the capability *and*, if area is not null, also copies the
> capability string into the area.

That's the obvious (and predominant) interpretation.

Of course any comments pointing to TOG should take into account the
fact that they're describing the termcap interface as a conversion
aid, and have in mind characteristics of the underlying terminfo
interface rather than some legacy implementation whose design
features have diverged from the original termcap.

--=20
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--XsQoSWH+UP9D9v3l
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQFFhS9vtIqByHxlDocRAmgOAKCymue7Ryu/2Qzy93JYqEWeAAxaggCfey2T
YFQB1KnZ8p6FpS78A4ArJMY=
=t8Pr
-----END PGP SIGNATURE-----

--XsQoSWH+UP9D9v3l--