warning: Setting locale failed|
Posted March 16, 2009
After upgrading ubuntu from feisty or gutsy to hardy, you might get warnings like this cluttering your terminal:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_CA.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory
sudo update-locale LC_ALL=POSIX LANG=en_CA
Next login, you should be able to run "perl -e ''" without clutter.