From 722126aa0ad03825b0cf4cd2c807dc446c8f445d Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sun, 5 Dec 2021 15:59:27 +1100 Subject: [PATCH] Use latin1 encoding to decode bytes --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 174d3360a93..1cd22228bfe 100755 --- a/setup.py +++ b/setup.py @@ -185,7 +185,7 @@ def _find_library_dirs_ldconfig(): return [] [data, _] = p.communicate() if isinstance(data, bytes): - data = data.decode() + data = data.decode("latin1") dirs = [] for dll in re.findall(expr, data):