NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/43386: "tput longname" broke with terminfo



>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 
ocelot@valkyrie:/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.



Home | Main Index | Thread Index | Old Index