From c08f4350b9e4c791bc928303af16642ab9e308fe Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Tue, 24 Jul 2012 10:34:28 +0200 Subject: [PATCH] Make GitPython work on non English systems --- git/cmd.py | 3 +++ 1 file changed, 3 insertions(+) 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: