summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-05-31 15:02:10 +0200
committerSebastian Thiel <byronimo@gmail.com>2015-05-31 15:02:10 +0200
commit14851034ab5204ddb7329eb34bb0964d3f206f2b (patch)
tree5b8768cf39a8edd76add268a059ba8f69432d99e /git/cmd.py
parent32e4e08cf9ccfa90f0bc6d26f0c7007aeafcffeb (diff)
downloadgitpython-14851034ab5204ddb7329eb34bb0964d3f206f2b.tar.gz
fix(git-cmd): set LANGUAGE as well
This is a pre-emptive measure based on http://goo.gl/l74GC8 . Related to #290
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 ee35bbcf..87e482d8 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -551,6 +551,9 @@ class Git(LazyMixin):
env = os.environ.copy()
# Attempt to force all output to plain ascii english, which is what some parsing code
# may expect.
+ # According to stackoverflow (http://goo.gl/l74GC8), we are setting LANGUAGE as well
+ # just to be sure.
+ env["LANGUAGE"] = "C"
env["LC_ALL"] = "C"
env.update(self._environment)