Use latin1 encoding to decode bytes

This commit is contained in:
Andrew Murray 2021-12-05 15:59:27 +11:00
parent c5d9223a8b
commit 722126aa0a

View File

@ -185,7 +185,7 @@ def _find_library_dirs_ldconfig():
return [] return []
[data, _] = p.communicate() [data, _] = p.communicate()
if isinstance(data, bytes): if isinstance(data, bytes):
data = data.decode() data = data.decode("latin1")
dirs = [] dirs = []
for dll in re.findall(expr, data): for dll in re.findall(expr, data):