summaryrefslogtreecommitdiff
path: root/Lib/ctypes/util.py
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2010-03-15 13:46:04 +0000
committerMatthias Klose <doko@ubuntu.com>2010-03-15 13:46:04 +0000
commiteb605d97fed107f7fffc4c2c4e55eb9429357ef3 (patch)
tree1b9a118fbd14333969a7944ce7673804915242da /Lib/ctypes/util.py
parent4d4c190c12ff617ade8cecc3da2bd873d2f52a08 (diff)
downloadcpython-eb605d97fed107f7fffc4c2c4e55eb9429357ef3.tar.gz
Merged revisions 78979 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78979 | matthias.klose | 2010-03-15 14:42:23 +0100 (Mo, 15 Mär 2010) | 3 lines - Issue #7356: ctypes.util: Make parsing of ldconfig output independent of the locale. ........
Diffstat (limited to 'Lib/ctypes/util.py')
-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 dca4ec371e..1cde0e3a85 100644
--- a/Lib/ctypes/util.py
+++ b/Lib/ctypes/util.py
@@ -205,7 +205,7 @@ elif os.name == "posix":
# XXX assuming GLIBC's ldconfig (with option -p)
expr = r'(\S+)\s+\((%s(?:, OS ABI:[^\)]*)?)\)[^/]*(/[^\(\)\s]*lib%s\.[^\(\)\s]*)' \
% (abi_type, re.escape(name))
- with contextlib.closing(os.popen('/sbin/ldconfig -p 2>/dev/null')) as f:
+ with contextlib.closing(os.popen('LANG=C /sbin/ldconfig -p 2>/dev/null')) as f:
data = f.read()
res = re.search(expr, data)
if not res: