Re: terminfo entries over 4096 bytes and non-default build configurations

Thomas Dickey <[email protected]> Mon, 20 Jul 2026 14:49:51 -0400
Newsgroups gmane.comp.lib.ncurses.bugs
Message-ID <[email protected]>
--4R9spmDXaoxrTLzV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 20, 2026 at 06:05:40PM +0200, Sven Joachim wrote:
> When building with --disable-widec or --with-abi-version=3D5, the size of
> terminfo entries is limited to 4096 bytes (MAX_ENTRY_SIZE in
> include/tic.h).  Since popular entries like xterm or xterm-256color are
> now larger than that limit, problems arise:
>=20
> - When installing the terminfo database from such a build, these entries
>   are missing (tic reports that they are larger than 4096 bytes, so the
>   builder might at least notice that they are skipped).
>=20
> - The libraries cannot open such an entry, for instance newterm() fails
>   with a "cannot initialize terminal type" error message.
>=20
> Note that the second problem does not ensue if libncurses.so.6 and
> libncursesw.so.6 share a common libtinfo.so.6 from the wide build, as is
> the case in Debian and Fedora.
>=20
> Can the limit be increased to 32768 in all configurations?  After all,

maybe (it would be a simple solution -- the alternative seems to be to
omit part or all of the extended capabilities, which also is simple).

> compatibility with current terminfo entries seems to be more important
> than compatibility with SVr2.
>=20
> Cheers,
>        Sven
>=20
>=20

--=20
Thomas E. Dickey <[email protected]>
https://invisible-island.net

--4R9spmDXaoxrTLzV
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmpebc8ACgkQzCr0RyFn
vgMsVwwA9YIVFMpKepDCxatcveSzJQXqVR/WhhBP6PkZ66SzH2HzNN+9sQYaxtuB
5fkpA9NStsRaiZ+/U0dvwfivhYk3GlrGJysAFtsNKwRz083MyXaI6DxLdv3lUzEA
UNVWZZ29DpbNc0XpCVjwkR28aRSH9fPNNqi4F5qd1PXP0Eho67C1RyIIvvFO6l7W
7yU8N9b0bFJvrIUb7hsj03lzqAb4Fnn7C+PI2w5erdr/O5LwCLrfbu4JUVw1MJaM
LvR3/UqXYu9sjcPLQ2qHTAiGljIvPG7pv8mDSh1YFM6KJwoc0/1PcGSgCHfpkhjT
n8zNmmYOBxmQLKatRehazpBExZs9m1fQxi8j3Eh/npFGPvhljzY4HczVsmWV+sBP
EqaLjMqERXjbd0HwUVoH5aRVxpvCQUi0eptyjwiwqzre1NHtat+2lf1JHDPJU16L
oUJNm4MJCkjttP9j+TfTwEKCM3yeH0qbEXOjVAiel2M7eE3Yh8gM8/aM3sqMYJkW
CypHUr44
=h445
-----END PGP SIGNATURE-----

--4R9spmDXaoxrTLzV--