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 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)