Commit 358e7ff3 authored by Matthias Klose's avatar Matthias Klose

- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of

  the locale.
parent 24e4e168
...@@ -185,7 +185,7 @@ elif os.name == "posix": ...@@ -185,7 +185,7 @@ elif os.name == "posix":
def _findLib_ldconfig(name): def _findLib_ldconfig(name):
# XXX assuming GLIBC's ldconfig (with option -p) # XXX assuming GLIBC's ldconfig (with option -p)
expr = r'/[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name) 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: try:
data = f.read() data = f.read()
finally: finally:
......
...@@ -20,6 +20,9 @@ Core and Builtins ...@@ -20,6 +20,9 @@ Core and Builtins
Library Library
------- -------
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
the locale.
- Issue #7774: Set sys.executable to an empty string if ``argv[0]`` has been - Issue #7774: Set sys.executable to an empty string if ``argv[0]`` has been
set to an non existent program name and Python is unable to retrieve the real set to an non existent program name and Python is unable to retrieve the real
program name. program name.
......
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