cpython: a6a36bb6ee50 (original) (raw)

--- a/Lib/ctypes/util.py +++ b/Lib/ctypes/util.py @@ -115,10 +115,13 @@ elif os.name == "posix": env = dict(os.environ) env['LC_ALL'] = 'C' env['LANG'] = 'C'

@@ -140,9 +143,12 @@ elif os.name == "posix": if not f: return None

@@ -159,9 +165,12 @@ elif os.name == "posix": # objdump is not available, give up return None

@@ -187,11 +196,15 @@ elif os.name == "posix": expr = r':-l%s.\S+ => \S*/(lib%s.\S+)' % (ename, ename) expr = os.fsencode(expr)

res = re.findall(expr, data) if not res: @@ -214,10 +227,13 @@ elif os.name == "posix": args = ('/usr/bin/crle',) paths = None