On Mon, May 02, 2011 at 11:04:45AM +0200, LEVAI Daniel wrote: > On Mon, May 02, 2011 at 10:51:05 +0200, Stefan Sperling wrote: > > On Mon, May 02, 2011 at 10:38:03AM +0200, LEVAI Daniel wrote: > > > Hi! > > > > > > I've finally got around a problem when using UTF-8 encoding and mutt + > > > vim. Here is the solution; if you think it's worth including, then > > > please do it. > > > > Things work perfectly for me without any of these settings in .vimrc. > > > > How are you setting your locale and what terminal/fonts are you using? > LANG='hu_HU' > LC_CTYPE='en_US.UTF-8' > LC_TIME='hu_HU' > LC_COLLATE='hu_HU' > LC_MONETARY='hu_HU' > LC_MESSAGES='en_US.UTF-8' > LC_PAPER='hu_HU' >
Why are you mixing en_US and hu_HU? The only category that has an effect for libc is LC_CTYPE. The others are ignored by libc. >From setlocale(3): BUGS The current implementation supports only the "C" and "POSIX" locales for all but the LC_CTYPE locale. However, some applications (and gettext) might peek at LANG which is treated like LC_ALL. If LANG and LC_ALL aren't set apps may look at LC_MESSAGES. So try this: LC_CTYPE=hu_HU.UTF-8 LANG=hu_HU.UTF-8 LC_MESSAGES==hu_HU.UTF-8 Though setting just LANG should suffice. The other LC_ variables have no effect on OpenBSD. The hu_HU.UTF-8 LC_CTYPE locale is available by default in 4.9. It's trivial to add it to 4.8 systems: mkdir /usr/share/locale/hu_HU.UTF-8 ln /usr/share/locale/en_US.UTF-8/LC_CTYPE /usr/share/locale/hu_HU.UTF-8/ > > I've attached my .vimrc for reference. Does it work for you? > Yes :/ > I'm confused. Maybe it's because of 'set nocompatible'?