locales
Fixing :perl: warning: Setting locale failed." errors on a Debian or Ubuntu system.
Submitted by soccerfiend on Sat, 2011-08-13 11:51The short short version is that I run the following four commands in sequence:
- export LANGUAGE=en_CA:en
- export LANG=en_CA.UTF-8
- locale-gen en_CA.UTF-8
- dpkg-reconfigure locales
Of course this example is specific to a Canadian English UTF-8 system. In the US, the language might be defined as something like en_US.UTF-8.