xinpureZhu

Menu

perl: warning: Setting locale failed.

将 mac 系统切换成英文后,使用 git 命令出现如下错误:

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

解决方法

~/.bash_profile 最后一行添加

export LC_ALL=C
— 于 共写了300个字
— 文内使用到的标签:

发表评论

电子邮件地址不会被公开。 必填项已用*标注