Bug#379107: vim: Should automaticly get the terminal encoding from the enviroment.

Kurt Roeckx kurt at roeckx.be
Fri Jul 21 11:39:53 UTC 2006

Package: vim
Version: 7.0-035+1
Severity: wishlist


The manual says:
'termencoding' 'tenc'   string  (default ""; with GTK+ 2 GUI: "utf-8"; with
                                                    Macintosh GUI: "macroman")

Why isn't it using LC_CTYPE to get this?

What I currently have is:
$ locale charmap

If I had a UTF-8 terminal, it would have:
$ LC_CTYPE=en_US.UTF-8 locale charmap

Why isn't it using nl_langinfo(CODESET) to set the default?
Taking a very quick look at the source, it seems to be using it,
but I'm not sure what it's doing with it.


More information about the pkg-vim-maintainers mailing list