[email protected]
[Top] [All Lists]

bin/43386: "tput longname" broke with terminfo

Subject: bin/43386: "tput longname" broke with terminfo
From:
Date: Sat, 29 May 2010 19:35:00 +0000 UTC
>Number:         43386
>Category:       bin
>Synopsis:       "tput longname" broke with terminfo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 29 19:35:00 +0000 2010
>Originator:     David A. Holland
>Release:        NetBSD 5.99.29 (20100529)
>Organization:
>Environment:
System: NetBSD valkyrie 5.99.28 NetBSD 5.99.28 (VALKYRIE) #6: Sat May 1 
21:46:59 EDT 2010 
[email protected]:/home/ocelot/netbsd/vfs/namei/sys/arch/amd64/compile/VALKYRIE 
amd64
Architecture: x86_64
Machine: amd64
>Description:

valkyrie% ./obj/tput longname

valkyrie% 

whereas in pre-terminfo 5.99.22:

tanaqui% /usr/bin/tput longname
xterm terminal emulator (X Window System)
tanaqui% 

The problem is that prlongname() in tput copies the name out of what
it thinks is a termcap entry, but it isn't one, so it gets nothing
and/or binary garble instead.

>How-To-Repeat:

as above

>Fix:

Dunno. The long names are in the terminfo source but it's not clear
from the documentation how to get them at runtime.

<Prev in Thread] Current Thread [Next in Thread>
  • bin/43386: "tput longname" broke with terminfo, dholland <=