[py-svn] r17000 - py/dist/py/path/svn
tismer at codespeak.net
tismer at codespeak.net
Sun Aug 28 13:44:07 CEST 2005
Author: tismer
Date: Sun Aug 28 13:44:06 2005
New Revision: 17000
Modified:
py/dist/py/path/svn/wccommand.py
Log:
small patch to set LC_MESSAGES before doing svn commands
Modified: py/dist/py/path/svn/wccommand.py
==============================================================================
--- py/dist/py/path/svn/wccommand.py (original)
+++ py/dist/py/path/svn/wccommand.py Sun Aug 28 13:44:06 2005
@@ -66,7 +66,16 @@
if DEBUG:
print "execing", string
try:
- out = py.process.cmdexec(string)
+ try:
+ key = 'LC_MESSAGES'
+ hold = os.environ.get(key)
+ os.environ[key] = 'C'
+ out = py.process.cmdexec(string)
+ finally:
+ if hold:
+ os.environ[key] = hold
+ else:
+ del os.environ[key]
except py.process.cmdexec.Error, e:
strerr = e.err.lower()
if strerr.find('file not found') != -1:
More information about the pytest-commit
mailing list