Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] recompiling vim linked to libncursesw
Date: Wed, 27 Jul 2005 05:09:57
Message-Id: 42E716CB.3010008@asmallpond.org
In Reply to: [gentoo-user] recompiling vim linked to libncursesw by Fernando Canizo
1 Fernando Canizo wrote:
2
3 >Hi all.
4 >
5 >I'm having trouble with my encoding using mutt + vim + utf-8,
6 >basically mi emails are sent with wrong encoding when *replying*. I've
7 >tracked the problem, searched, readed FAQs and i found that maybe my
8 >problem is this: that while mutt is linked to libncursesw (wide
9 >library) vim is to libncurses (normal), this is the output of ldd:
10 >
11 >$ ldd `which vim` | grep curses
12 >libncurses.so.5 => /lib/libncurses.so.5 (0xb7f98000)
13 >$ ldd `which mutt` | grep curses
14 >libncursesw.so.5 => /lib/libncursesw.so.5 (0xb7f8f000)
15 >
16 >Except for this my utf-8 environment is running fine.
17 >
18 >I tried re 'emerge vim' thinking that maybe it just get fixed since i
19 >use unicode and utf8 in my USE, but that didn't do anything, vim is
20 >still linked to the non wide curses library.
21 >
22 >So the question is: how do i tell to emerge to forge a vim wich is
23 >linked to libncursesw.so ?
24 >
25 >
26
27 Hmm, tough one. I don't see any way to configure vim specifically for
28 ncursesw. Your best bet may be to try and fake out the dynamic linker
29 and tell it to use libncursesw instead of libncurses for vim.
30
31 ln -s /lib/libncursesw.so.5 /etc/vim/libncurses.so.5
32 LD_LIBRARY_PATH=/etc/vim ldd /usr/bin/vim
33 LD_LIBRARY_PATH=/etc/vim vim
34
35 If vim seems sane, then exporting LD_LIBRARY_PATH before starting mutt
36 should resolve the problem (assuming that the problem really is in the
37 type of ncurses...)
38
39 -Richard
40
41
42
43 --
44 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] recompiling vim linked to libncursesw Philip Webb <purslow@×××××××××.ca>
Re: [gentoo-user] recompiling vim linked to libncursesw Fernando Canizo <conan@××××××××××.ar>