From 612a7f6552399fb29a4bf4ad4f8a9116bf7b7f1d Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Mon, 15 Mar 2010 13:42:23 +0000 Subject: - Issue #7356: ctypes.util: Make parsing of ldconfig output independent of the locale. --- Lib/ctypes/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/ctypes') diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py index 8f6e3384db..adde30798c 100644 --- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -185,7 +185,7 @@ elif os.name == "posix": def _findLib_ldconfig(name): # XXX assuming GLIBC's ldconfig (with option -p) 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: data = f.read() finally: -- cgit v1.2.1