From 85c8197d97c5d592feb022134fe99d95cbef1386 Mon Sep 17 00:00:00 2001 From: Andreas Hasenack Date: Wed, 12 Jul 2006 18:27:02 +0000 Subject: import fix to #23597 done in V1_5_X branch --- RepSys/pexpect.py | 2 ++ RepSys/util.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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): -- cgit v1.2.1