[csw-devel] SF.net SVN: gar:[21338] csw/mgar/gar/v2/lib/python/shell.py
chninkel at users.sourceforge.net
chninkel at users.sourceforge.net
Fri Jun 14 22:41:54 CEST 2013
Revision: 21338
http://gar.svn.sourceforge.net/gar/?rev=21338&view=rev
Author: chninkel
Date: 2013-06-14 20:41:52 +0000 (Fri, 14 Jun 2013)
Log Message:
-----------
gar/v2: checkpkg: shell commands are executed with LC_ALL=C
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/shell.py
Modified: csw/mgar/gar/v2/lib/python/shell.py
===================================================================
--- csw/mgar/gar/v2/lib/python/shell.py 2013-06-14 13:38:58 UTC (rev 21337)
+++ csw/mgar/gar/v2/lib/python/shell.py 2013-06-14 20:41:52 UTC (rev 21338)
@@ -15,7 +15,7 @@
def TimeoutHandler(signum, frame):
raise TimeoutExpired
-def ShellCommand(args, env=None, timeout=None,
+def ShellCommand(args, env={}, timeout=None,
quiet=True, allow_error=False,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE):
@@ -25,6 +25,8 @@
stdout = subprocess.STDOUT
stderr = subprocess.STDOUT
+ env['LC_ALL'] = 'C'
+
# Python 3.3 have the timeout option
# we have to roughly emulate it with python 2.x
if timeout:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list