Search notes:

Vim: E197: Cannot set language to "en_US.UTF-8"

The following command caused the error message E197: Cannot set language to "en_US.UTF-8"
:language message en_US.UTF-8
In the shell (running in Debian), locale -a doesn't report the locale en_US.UTF-8:
$ locale -a
C
C.UTF-8
POSIX
Uncomment en_US.UTF-8 in /etc/locale.gen:
$ sudo sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen
Then:
$ sudo locale-gen
…
$ locale-a
rene@tq84-vm:~$ locale -a
C
C.UTF-8
POSIX
en_US.utf8

Index