diff options
author | Matthias Klose <doko@ubuntu.com> | 2010-03-15 13:42:23 +0000 |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2010-03-15 13:42:23 +0000 |
commit | 612a7f6552399fb29a4bf4ad4f8a9116bf7b7f1d (patch) | |
tree | 4e3cbb074b04073282bbbcd26c67dcfb8820bfa5 /Lib/ctypes | |
parent | 919411391caf0e62a8670f9f89ceab0eb7ea4783 (diff) | |
download | cpython-612a7f6552399fb29a4bf4ad4f8a9116bf7b7f1d.tar.gz |
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
the locale.
Diffstat (limited to 'Lib/ctypes')
-rw-r--r-- | Lib/ctypes/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |