diff --git a/git/cmd.py b/git/cmd.py index 0cd3e86cc..46a350e88 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -337,12 +337,15 @@ def execute(self, command, cwd=self._working_dir # Start the process + env = os.environ.copy() + env['LANG'] = 'C' proc = Popen(command, cwd=cwd, stdin=istream, stderr=PIPE, stdout=PIPE, close_fds=(os.name=='posix'),# unsupported on linux + env=env, **subprocess_kwargs ) if as_process: