Kaydet (Commit) 19f9810a authored tarafından Matthias Klose's avatar Matthias Klose

Try harder on issue #7356: ctypes.util: Make parsing of ldconfig output

independent of the locale. Set LC_ALL=C too.
üst f81eef11
......@@ -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('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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment