mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Merge pull request #5870 from radarhere/setup
Use latin1 encoding to decode bytes
This commit is contained in:
commit
39de05363a
2
setup.py
2
setup.py
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user