当我运行perl时,我得到警告:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
我该怎么解决呢?
一如既往,细节决定成败。
在Mac OS X v10.7.5 (Lion)上,要修复一些Django错误,请在我的~/。bash_profile我已经设置:
export LANG=en_EN.UTF-8
export LC_COLLATE=$LANG
export LC_CTYPE=$LANG
export LC_MESSAGES=$LANG
export LC_MONETARY=$LANG
export LC_NUMERIC=$LANG
export LC_TIME=$LANG
export LC_ALL=$LANG
在很长一段时间里,我在使用Perl时都得到了这样的警告。
我的坏!我后来才意识到,我的系统是en_US.UTF-8!
我只是通过改变
export LANG=en_EN.UTF-8
to
export LANG=en_US.UTF-8