summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 0cd3e86c..46a350e8 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -337,12 +337,15 @@ class Git(LazyMixin):
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: