[Python-checkins] cpython (2.7): Issue #7356: ctypes.util: Make parsing of ldconfig output locale independent.
martin.panter
python-checkins at python.org
Thu Jun 9 23:52:15 EDT 2016
https://hg.python.org/cpython/rev/b4839797f482
changeset: 101840:b4839797f482
branch: 2.7
parent: 101835:e981a4273cf6
user: Matthias Klose <doko at ubuntu.com>
date: Mon Mar 15 13:46:04 2010 +0000
summary:
Issue #7356: ctypes.util: Make parsing of ldconfig output locale independent.
Previous fix was only made to dead and removed code.
files:
Lib/ctypes/util.py | 2 +-
Misc/NEWS | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
--- a/Lib/ctypes/util.py
+++ b/Lib/ctypes/util.py
@@ -223,7 +223,7 @@
# XXX assuming GLIBC's ldconfig (with option -p)
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:
data = f.read()
finally:
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,9 @@
Library
-------
+- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of the
+ locale.
+
- Issue #25738: Stop BaseHTTPServer.BaseHTTPRequestHandler.send_error() from
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
@@ -6232,9 +6235,6 @@
- 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
to an non existent program name and Python is unable to retrieve the real
program name.
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list