解决 perl: warning: Setting locale failed.

解决 perl: warning: Setting locale failed.

mac 升级到 High Sierra后,在terminal执行git 命令提示 perl: warning: Setting locale failed.

原因是因为语言设置的问题

vim  ~/.zshrc
# Setting for the new UTF-8 terminal support in Lion
LC_CTYPE=en_US.UTF-8
LC_ALL=en_US.UTF-8
source ~/.zshrc

参考

https://maoxian.de/2015/12/1364.html

你可能感兴趣的:(mac)