aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Hasenack <andreas@mandriva.com>2006-07-12 18:27:02 +0000
committerAndreas Hasenack <andreas@mandriva.com>2006-07-12 18:27:02 +0000
commit85c8197d97c5d592feb022134fe99d95cbef1386 (patch)
tree66b3134660b4951e1146736477fa5e5d1260c057
parent4c71bf31119a8599e2d77a15481c9449d26a4d0f (diff)
downloadmgarepo-85c8197d97c5d592feb022134fe99d95cbef1386.tar
mgarepo-85c8197d97c5d592feb022134fe99d95cbef1386.tar.gz
mgarepo-85c8197d97c5d592feb022134fe99d95cbef1386.tar.bz2
mgarepo-85c8197d97c5d592feb022134fe99d95cbef1386.tar.xz
mgarepo-85c8197d97c5d592feb022134fe99d95cbef1386.zip
import fix to #23597 done in V1_5_X branchtopic/pysvn-support
-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):