Ver código fonte

Force language used by C git, in case it's run with a different locale.

Jelmer Vernooij 9 anos atrás
pai
commit
6ae640a463
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      dulwich/tests/compat/utils.py

+ 1 - 0
dulwich/tests/compat/utils.py

@@ -124,6 +124,7 @@ def run_git(args, git_path=_DEFAULT_GIT, input=None, capture_stdout=False,
     """
     """
 
 
     env = get_safe_env(popen_kwargs.pop('env', None))
     env = get_safe_env(popen_kwargs.pop('env', None))
+    env['LC_ALL'] = env['LANG'] = 'C'
 
 
     args = [git_path] + args
     args = [git_path] + args
     popen_kwargs['stdin'] = subprocess.PIPE
     popen_kwargs['stdin'] = subprocess.PIPE