Fernando Canizo wrote:
Hi all.
I'm having trouble with my encoding using mutt + vim + utf-8,
basically mi emails are sent with wrong encoding when *replying*. I've
tracked the problem, searched, readed FAQs and i found that maybe my
problem is this: that while mutt is linked to libncursesw (wide
library) vim is to libncurses (normal), this is the output of ldd:
$ ldd `which vim` | grep curses
libncurses.so.5 => /lib/libncurses.so.5 (0xb7f98000)
$ ldd `which mutt` | grep curses
libncursesw.so.5 => /lib/libncursesw.so.5 (0xb7f8f000)
Except for this my utf-8 environment is running fine.
I tried re 'emerge vim' thinking that maybe it just get fixed since i
use unicode and utf8 in my USE, but that didn't do anything, vim is
still linked to the non wide curses library.
So the question is: how do i tell to emerge to forge a vim wich is
linked to libncursesw.so ?
Hmm, tough one. I don't see any way to configure vim specifically for
ncursesw. Your best bet may be to try and fake out the dynamic linker
and tell it to use libncursesw instead of libncurses for vim.
ln -s /lib/libncursesw.so.5 /etc/vim/libncurses.so.5
LD_LIBRARY_PATH=/etc/vim ldd /usr/bin/vim
LD_LIBRARY_PATH=/etc/vim vim
If vim seems sane, then exporting LD_LIBRARY_PATH before starting mutt
should resolve the problem (assuming that the problem really is in the
type of ncurses...)
-Richard
--
[email protected] mailing list