3

I have gitolite running on a remote server (in English_US) and one of my computers accesses it using git with es_MX (espaƱol, Mexico) as the locale. Everytime I access the server, it gives me an error:

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

Is there a way to tell git to use en_US when connecting to gitolite only?

Edit: I have already tried the answer to this question, but that only changes the local language, and does not affect the error.

Community
  • 1
  • 1
Bryan Agee
  • 4,924
  • 3
  • 26
  • 42

1 Answers1

0

That might means the locale aren't properly set up on your gitolite server

$ sudo locale-gen
$ sudo dpkg-reconfigure locales

And/or that your sshd doesn't accept the LANG environment variable (/etc/ssh/sshd_config):

AcceptEnv LANG LC_*
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250