Public bug reported:
Ubuntu 9.04, ncurses-base 5.7+20090207-1ubuntu1.
/etc/terminfo/README says "This directory is for system-local terminfo
descriptions. By default, ncurses will search this directory first, then
/lib/terminfo, then /usr/share/terminfo." It's incorrect. It's quite
clear from strace that $HOME/.terminfo is searched first, and then the
sequence described by README. In misleading the user, it makes them
thinks they need system privileges to modify /etc/terminfo and set up
their own terminal definition, they don't. A $HOME/.terminfo/x/xterm
works just fine.
$ TERM=nonexist strace sl 2>&1 | grep nonexist
access("/home/ralph/.terminfo/n/nonexist", R_OK) = -1 ENOENT (No such file
or directory)
access("/etc/terminfo/n/nonexist", R_OK) = -1 ENOENT (No such file or
directory)
access("/lib/terminfo/n/nonexist", R_OK) = -1 ENOENT (No such file or
directory)
access("/usr/share/terminfo/n/nonexist", R_OK) = -1 ENOENT (No such file or
directory)
write(2, "Error opening terminal: nonexist"..., 34Error opening terminal:
nonexist.
$
** Affects: ncurses (Ubuntu)
Importance: Undecided
Status: New
** Package changed: ubuntu => ncurses (Ubuntu)
--
/etc/terminfo/README neglects to mention $HOME/.terminfo
https://bugs.launchpad.net/bugs/384285
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs