Kaydet (Commit) 2db7bdf8 authored tarafından Matthias Klose's avatar Matthias Klose

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.
........
üst c6941836
...@@ -198,7 +198,7 @@ elif os.name == "posix": ...@@ -198,7 +198,7 @@ elif os.name == "posix":
expr = r'(\S+)\s+\((%s(?:, OS ABI:[^\)]*)?)\)[^/]*(/[^\(\)\s]*lib%s\.[^\(\)\s]*)' \ expr = r'(\S+)\s+\((%s(?:, OS ABI:[^\)]*)?)\)[^/]*(/[^\(\)\s]*lib%s\.[^\(\)\s]*)' \
% (abi_type, re.escape(name)) % (abi_type, re.escape(name))
res = re.search(expr, 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: if not res:
return None return None
return res.group(1) return res.group(1)
......
...@@ -15,6 +15,9 @@ Core and Builtins ...@@ -15,6 +15,9 @@ Core and Builtins
Library Library
------- -------
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
the locale.
What's New in Python 2.6.5? What's New in Python 2.6.5?
=========================== ===========================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment