User Tools

Site Tools


Setting locales

The problem

~$ ./
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
  LANGUAGE = (unset),
  LC_ALL = (unset),
  LANG = "fr_CH.ISO8859-1"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

The solution

add in ~/.bashrc

export LC_ALL=C

if necessary, create the ~/.profile file

# cat .profile

# ~/.profile: executed by Bourne-compatible login shells.

if [ "$BASH" ]; then
  if [ -f ~/.bashrc ]; then
    . ~/.bashrc

mesg n
acdsn/locales.txt · Last modified: 2015/11/09 12:58 by sbolay