diff options
author | Matthias Klose <doko@ubuntu.com> | 2010-09-15 13:08:12 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2010-09-15 13:08:12 (GMT) |
commit | f01611979bc7616d65bae5bdffce8a409d7aa465 (patch) | |
tree | 0adbc85a37602390f743b2449278f90ab1ee84cb | |
parent | 25d535ea6a443f467eacfc9f487c90120972ca7f (diff) | |
download | cpython-f01611979bc7616d65bae5bdffce8a409d7aa465.zip cpython-f01611979bc7616d65bae5bdffce8a409d7aa465.tar.gz cpython-f01611979bc7616d65bae5bdffce8a409d7aa465.tar.bz2 |
Merged revisions 84836 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84836 | matthias.klose | 2010-09-15 15:06:09 +0200 (Mi, 15 Sep 2010) | 3 lines
Try harder on issue #7356: ctypes.util: Make parsing of ldconfig output
independent of the locale. Set LC_ALL=C too.
........
-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 58b0d73..52bc296 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('LANG=C /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: |