zsh解决perl: warning: Setting locale failed.

错误如下:

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").

在.zshrc中加入

export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_TYPE=en_US.UTF-8

即可

参考

http://stackoverflow.com/questions/2499794/how-can-i-fix-a-locale-warning-from-perl

posted @ 2015-12-08 20:08  dmkc  阅读(651)  评论(0编辑  收藏  举报