Bug 473977

Summary: vim incorrectly linked to libtermcap instead of libncurses
Product: Red Hat Enterprise Linux 5 Reporter: Tom Sorensen <tsorensen>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 5.2CC: ofourdan, pknirsch, psplicha, tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-22 17:27:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tom Sorensen 2008-12-01 17:16:57 UTC
Description of problem:

vim is apparently linked to libtermcap instead of libcurses or libncurses (preferable). This causes many vim to have incorrect capabilities under many values for TERM.


Version-Release number of selected component (if applicable):
vim-enhanced-7.0.109-3.el5.3

How reproducible:
100%


Steps to Reproduce:
1. export TERM=putty
2. vim
3. :echo t_Co
  
Actual results:
t_Co=

Expected results:
t_Co=8

Additional info:
If you set TERM=xterm, you get the expected results. Also reproducible for putty-256color vs xterm-256color, and others. :version shows +terminfo but the Linking: section shows -ltermcap. On other platforms (AIX, Solaris) it indicates -lncurses or -lcurses.

This problem is also in RHEL4. I do not have RHEL3 anywhere to check that.

Comment 8 errata-xmlrpc 2009-06-22 17:27:50 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1117.html