[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: vim & xterm problems



Markus Kuhn wrote:

On Sun, 16 Sep 2001, Christoph Singer wrote:

3. I deleted encoding=utf-8 from my .vimrc and decided to try not to leave
"termencoding" empty but to set it to "utf-8". And now, it works perfectly!

In summary what I did:

- compiled with --enable-multibyte
- added "set termencoding=utf-8" to .vimrc


The "set termencoding=utf-8" part should *NOT* be necessary! This is not an acceptable solution. Vim should detect the terminal character set automatically from the locale.

Please verify, whether you have really successfully set a UTF-8
locale. In particular, does "locale charmap" output "UTF-8"
as the encoding of the current locale? If not, make sure that
no LC_CTYPE or LC_ALL is overriding your LANG setting and that
there is really the selected locale installed in /usr/lib/locale/
("locale -a" for a list of normalised locale names).

chris@linux:~ > locale charmap UTF-8 chris@linux:~ > echo $LC_TYPE

chris@linux:~ > echo $LC_ALL

chris@linux:~ > locale -a
C
POSIX
... <snip> ...
de_DE
de_DE.UTF-8
de_DE.utf8
de_DE@euro
de_LU
...

May be there is a problem regarding de_DE.UTF-8 <-> de_DE.utf8?
I created this locale using
localedef -i de_DE@euro -f UTF-8 de_DE.UTF-8
but the resulting directory in /usr/lib/locale was called de_DE.utf8, and some programs gave the error message: "No such locale" when using de_DE.UTF-8. That's why I created de_DE.UTF-8 as a symlink to the de_DE.utf8 directory in /usr/lib/locale. How is it right? de_DE.utf8 or de_DE.UTF-8?


Thanks for your help,
Christoph

-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/