- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of

the locale.
This commit is contained in:
Matthias Klose 2010-03-15 13:42:23 +00:00
parent 24e4e168a0
commit 358e7ff36b
2 changed files with 4 additions and 1 deletions

View file

@ -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:

View file

@ -20,6 +20,9 @@ Core and Builtins
Library
-------
- 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.