summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2010-03-15 13:46:04 (GMT)
committerMatthias Klose <doko@ubuntu.com>2010-03-15 13:46:04 (GMT)
commit9aabaccb7632a35da37b3d9c58b6ee0aab3ac547 (patch)
tree3e2fbf50757fc0860ed099126e9c8251f899249e
parentd6cecd30af684c156769431a6b237d6f71a4219f (diff)
downloadcpython-9aabaccb7632a35da37b3d9c58b6ee0aab3ac547.zip
cpython-9aabaccb7632a35da37b3d9c58b6ee0aab3ac547.tar.gz
cpython-9aabaccb7632a35da37b3d9c58b6ee0aab3ac547.tar.bz2
Issue #7356: ctypes.util: Make parsing of ldconfig output locale independent.
Previous fix was only made to dead and removed code.
-rw-r--r--Lib/ctypes/util.py2
-rw-r--r--Misc/NEWS6
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
index bf1b6a0..b2c514d 100644
--- a/Lib/ctypes/util.py
+++ b/Lib/ctypes/util.py
@@ -223,7 +223,7 @@ elif os.name == "posix":
# 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
index 6359e7c..591864f 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,9 @@ Core and Builtins
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 @@ Library
- 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.