summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2010-03-15 13:42:23 (GMT)
committerMatthias Klose <doko@ubuntu.com>2010-03-15 13:42:23 (GMT)
commit358e7ff36b60ee933fbd913a8da9a9b55f8a90c9 (patch)
tree8ef37e4c88fa14384ea3c141b29b023a65b1fbc5 /Lib
parent24e4e168a0d4499c888b6180efb6758c5cde1bda (diff)
downloadcpython-358e7ff36b60ee933fbd913a8da9a9b55f8a90c9.zip
cpython-358e7ff36b60ee933fbd913a8da9a9b55f8a90c9.tar.gz
cpython-358e7ff36b60ee933fbd913a8da9a9b55f8a90c9.tar.bz2
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
the locale.
Diffstat (limited to 'Lib')
-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 8f6e338..adde307 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('/sbin/ldconfig -p 2>/dev/null')
+ f = os.popen('LANG=C /sbin/ldconfig -p 2>/dev/null')
try:
data = f.read()
finally: