aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Hasenack <andreas@mandriva.com>2006-07-12 18:16:33 +0000
committerAndreas Hasenack <andreas@mandriva.com>2006-07-12 18:16:33 +0000
commitc0a8ecd9b41c9b65b77106e9bcebb6ebb489c9a9 (patch)
tree5508e913a51d61fbfbf1d5b5f0223a1a3eb9f466
parenta5672bfd06fdb7446c201141c5811fc6af50cce0 (diff)
downloadmgarepo-c0a8ecd9b41c9b65b77106e9bcebb6ebb489c9a9.tar
mgarepo-c0a8ecd9b41c9b65b77106e9bcebb6ebb489c9a9.tar.gz
mgarepo-c0a8ecd9b41c9b65b77106e9bcebb6ebb489c9a9.tar.bz2
mgarepo-c0a8ecd9b41c9b65b77106e9bcebb6ebb489c9a9.tar.xz
mgarepo-c0a8ecd9b41c9b65b77106e9bcebb6ebb489c9a9.zip
- fix i18n regarding parsing svn's output (#23597)
-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 0337bc1..766d3c1 100644
--- a/RepSys/util.py
+++ b/RepSys/util.py
@@ -22,7 +22,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):