bash-fu: Setting Locale on Ubuntu [Hardy]

Jeff Mancuso August 6th, 2008

Not 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: , ,

2 Responses to “bash-fu: Setting Locale on Ubuntu [Hardy]”

  1. andriansah Says:

    huaaaaaaaaaaaaaa

    thank you, you heal my headache

  2. ulrik Says:

    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!)

Leave a Reply

Subscribe:

Add to Google
RSS
Try ExpanDrive

If you’ve heard of SSH then you need ExpanDrive.