Commit 9aabaccb authored by Matthias Klose's avatar Matthias Klose

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

Previous fix was only made to dead and removed code.
parent d6cecd30
...@@ -223,7 +223,7 @@ elif os.name == "posix": ...@@ -223,7 +223,7 @@ elif os.name == "posix":
# XXX assuming GLIBC's ldconfig (with option -p) # XXX assuming GLIBC's ldconfig (with option -p)
expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type) expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type)
f = os.popen('/sbin/ldconfig -p 2>/dev/null') f = os.popen('LC_ALL=C LANG=C /sbin/ldconfig -p 2>/dev/null')
try: try:
data = f.read() data = f.read()
finally: finally:
......
...@@ -92,6 +92,9 @@ Core and Builtins ...@@ -92,6 +92,9 @@ Core and Builtins
Library Library
------- -------
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of the
locale.
- Issue #25738: Stop BaseHTTPServer.BaseHTTPRequestHandler.send_error() from - Issue #25738: Stop BaseHTTPServer.BaseHTTPRequestHandler.send_error() from
sending a message body for 205 Reset Content. Also, don't send the sending a message body for 205 Reset Content. Also, don't send the
Content-Type header field in responses that don't have a body. Based on Content-Type header field in responses that don't have a body. Based on
...@@ -6232,9 +6235,6 @@ Library ...@@ -6232,9 +6235,6 @@ Library
- Issue #8140: Extend compileall to compile single files. Add -i option. - Issue #8140: Extend compileall to compile single files. Add -i option.
- 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 set - 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 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