summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2010-09-15 13:01:19 (GMT)
committerMatthias Klose <doko@ubuntu.com>2010-09-15 13:01:19 (GMT)
commit19f9810a1a17830d7cc88ec0788d9a1909c8b5ad (patch)
tree0957029f5e189e50eacbaa0cd02e33ab59060234
parentf81eef11d691e3c7febc64f154cfa06ab78286ca (diff)
downloadcpython-19f9810a1a17830d7cc88ec0788d9a1909c8b5ad.zip
cpython-19f9810a1a17830d7cc88ec0788d9a1909c8b5ad.tar.gz
cpython-19f9810a1a17830d7cc88ec0788d9a1909c8b5ad.tar.bz2
Try harder on issue #7356: ctypes.util: Make parsing of ldconfig output
independent of the locale. Set LC_ALL=C too.
-rw-r--r--Lib/ctypes/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
index adde307..52b3520 100644
--- a/Lib/ctypes/util.py
+++ b/Lib/ctypes/util.py
@@ -185,7 +185,7 @@ elif os.name == "posix":
def _findLib_ldconfig(name):
# XXX assuming GLIBC's ldconfig (with option -p)
expr = r'/[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name)
- f = os.popen('LANG=C /sbin/ldconfig -p 2>/dev/null')
+ f = os.popen('LC_ALL=C LANG=C /sbin/ldconfig -p 2>/dev/null')
try:
data = f.read()
finally: