mirror of
https://github.com/python/cpython.git
synced 2025-10-29 12:44:56 +00:00
- Issue #7356: ctypes.util: Make parsing of ldconfig output independent of
the locale.
This commit is contained in:
parent
24e4e168a0
commit
358e7ff36b
2 changed files with 4 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ def find_library(name):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue