我在远程服务器上运行 gitolite(英文),我的一台计算机使用 es_MX(español,墨西哥)作为语言环境的 git 访问它。每次我访问服务器时,它都会给我一个错误:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_PAPER = "es_MX.UTF-8",
LC_ADDRESS = "es_MX.UTF-8",
LC_MONETARY = "es_MX.UTF-8",
LC_NUMERIC = "es_MX.UTF-8",
LC_TELEPHONE = "es_MX.UTF-8",
LC_IDENTIFICATION = "es_MX.UTF-8",
LC_MEASUREMENT = "es_MX.UTF-8",
LC_TIME = "es_MX.UTF-8",
LC_NAME = "es_MX.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
有没有办法告诉 git 在仅连接到 gitolite 时使用 en_US ?
编辑: 我已经尝试过这个问题的答案,但这只会改变当地语言,不会影响错误。