bash-fu: Setting Locale on Ubuntu [Hardy]
August 6th, 2008Not a tip that is strictly bash related, but useful nonetheless. For those struggling to fix error messages on their Ubuntu whining about of an inability to set locale .
Error message:
perl: warning: Setting locale failed.<br/>
perl: warning: Please check that your locale settings:<br/>
...<br/>
perl: warning: Falling back to the standard locale ("C").<br/>
Fix:
sudo locale-gen en_US.UTF-8
with en_US replaced with your locale.
Tags: locale, locale-gen, ubuntu



August 19th, 2008 at 10:15 pm
huaaaaaaaaaaaaaa
thank you, you heal my headache
June 15th, 2009 at 5:23 pm
Arriving late to the party..
Edit the file /etc/locale.gen as root and uncomment all locales you want to use
Then you run ‘sudo locale-gen’ again!
Now finally can I run 1. my standard locale (like always) but also 2. the english locale but with UTF-8 (some applications have problems with encoding on non-UTF-8 locales!)