在Centos把shell改为zsh后,出现了下面这个waring信息,虽不影响使用,但看着实在是烦人. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). 查了一些资料,可以通过在.zshrc中增加两行配置来解决这个问题 LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 ……

阅读全文