本篇文章由:http://xinpure.com/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

相关文章:

  • 2021-10-16
  • 2021-08-23
  • 2022-01-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2021-06-14
  • 2022-01-08
猜你喜欢
  • 2021-10-15
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案