diff options
-rw-r--r-- | Lib/ctypes/util.py | 2 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py index 1bd2d70..58b0d73 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -219,7 +219,7 @@ elif os.name == "posix": # XXX assuming GLIBC's ldconfig (with option -p) expr = r'(\S+)\s+\((%s(?:, OS ABI:[^\)]*)?)\)[^/]*(/[^\(\)\s]*lib%s\.[^\(\)\s]*)' \ % (abi_type, re.escape(name)) - f = os.popen('/sbin/ldconfig -p 2>/dev/null') + f = os.popen('LANG=C /sbin/ldconfig -p 2>/dev/null') try: data = f.read() finally: @@ -17,6 +17,9 @@ Core and Builtins Library ------- +- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of + the locale. + What's New in Python 3.1.2 release candidate 1? =============================================== |