mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
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. ........
This commit is contained in:
parent
c694183625
commit
2db7bdf8b9
2 changed files with 4 additions and 1 deletions
|
@ -198,7 +198,7 @@ elif os.name == "posix":
|
|||
expr = r'(\S+)\s+\((%s(?:, OS ABI:[^\)]*)?)\)[^/]*(/[^\(\)\s]*lib%s\.[^\(\)\s]*)' \
|
||||
% (abi_type, re.escape(name))
|
||||
res = re.search(expr,
|
||||
os.popen('/sbin/ldconfig -p 2>/dev/null').read())
|
||||
os.popen('LANG=C /sbin/ldconfig -p 2>/dev/null').read())
|
||||
if not res:
|
||||
return None
|
||||
return res.group(1)
|
||||
|
|
|
@ -15,6 +15,9 @@ Core and Builtins
|
|||
Library
|
||||
-------
|
||||
|
||||
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
|
||||
the locale.
|
||||
|
||||
|
||||
What's New in Python 2.6.5?
|
||||
===========================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue