aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--RepSys/pexpect.py2
-rw-r--r--RepSys/util.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/RepSys/pexpect.py b/RepSys/pexpect.py
index 2460052..02a14f5 100644
--- a/RepSys/pexpect.py
+++ b/RepSys/pexpect.py
@@ -217,6 +217,8 @@ class spawn:
pass
os.environ["LANG"] = "C"
+ os.environ["LANGUAGE"] = "C"
+ os.environ["LC_ALL"] = "C"
os.execvp(self.command, self.args)
# Parent
diff --git a/RepSys/util.py b/RepSys/util.py
index d539b81..8c66199 100644
--- a/RepSys/util.py
+++ b/RepSys/util.py
@@ -29,7 +29,7 @@ def execcmd(*cmd, **kwargs):
status = os.system(cmdstr)
output = ""
else:
- status, output = commands_getstatusoutput("LANG=C "+cmdstr)
+ status, output = commands_getstatusoutput("LANG=C LANGUAGE=C LC_ALL=C "+cmdstr)
if status != 0 and not kwargs.get("noerror"):
raise Error, "command failed: %s\n%s\n" % (cmdstr, output)
if config.getbool("global", "verbose", 0):