I just noticed that when I work in a UTF-8 locale (LC_CTYPE=en_GB.UTF-8), that vim 6.0 normally opens a UTF-8 file such as
http://www.cl.cam.ac.uk/~mgk25/ucs/examples/lyrics-ipa.txt properly in UTF-8 mode, but it deactivates UTF-8 mode when you load instead a file that contains malformed sequences, such as http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt Even worse, it also deactivates UTF-8 mode when you load a file that contains new Unicode 3.2 characters, such as http://www.cl.cam.ac.uk/~mgk25/UTF-8-demo.txt I live now on a planet were any other encoding than UTF-8 does not exist when I am in LC_CTYPE=en_GB.UTF-8. How do I tell vim 6.0 (and also emacs) to pick the encoding *strictly* based on the locale and look at absolutely nothing else? Falling back to ISO 8859-1 is not an option, because ISO 8859-1 is completely unknown on my planet. Trying to escape the horrors and pain of automatic encoding detection in a pure UTF-8 environment ... Markus -- Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/> -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
