User Tools

Site Tools


acdsn:locales

This is an old revision of the document!


Setting locales

The problem

~$ ./sync.pl
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 LANG=C

if necessary, create the ~/.profile file 2030:/home/acdsn# cat /root/.profile

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

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

mesg n
acdsn/locales.1391942455.txt.gz · Last modified: 2014/02/09 10:40 by sbolay