summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Ludwig <f.ludwig@greyrook.com>2012-07-24 10:34:28 +0200
committerFlorian Ludwig <f.ludwig@greyrook.com>2012-07-24 10:34:28 +0200
commitc08f4350b9e4c791bc928303af16642ab9e308fe (patch)
tree29f4a89293fcf70000769887e3facf287ded0d2c
parent6b5f70cc54c20513262b71f234665d618a7d57d2 (diff)
downloadgitpython-c08f4350b9e4c791bc928303af16642ab9e308fe.tar.gz
Make GitPython work on non English systems
-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: