summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorBenjamin Radel <benjamin@radel.tk>2024-01-16 20:39:05 +0100
committerCarl Hetherington <cth@carlh.net>2024-01-16 21:59:14 +0100
commit75d997393de1a89f648ac9e7f3122a316640b595 (patch)
tree1ae2a8fa43f3ec3cbc2d77d69b63c8e909785ced /wscript
parentf06acc5d2b9fa65639788fb011c3ada104400083 (diff)
Don't convert pkg-config output to utf-8v1.6.46
Don't convert pkg-config output to utf-8 to prevent failure if obscure non ascii characters are present
Diffstat (limited to 'wscript')
-rw-r--r--wscript3
1 files changed, 1 insertions, 2 deletions
diff --git a/wscript b/wscript
index 06e2660..855de57 100644
--- a/wscript
+++ b/wscript
@@ -141,8 +141,7 @@ def configure(conf):
# Find the icu- libraries on the system as we need to link to them when we look for boost locale.
locale_libs = ['boost_locale%s' % boost_lib_suffix, 'boost_system%s' % boost_lib_suffix]
for pkg in subprocess.check_output(['pkg-config', '--list-all']).splitlines():
- pkg = pkg.decode('utf-8')
- if pkg.startswith("icu"):
+ if pkg.startswith(b'icu'):
for lib in subprocess.check_output(['pkg-config', '--libs-only-l', pkg.split()[0]]).split():
name = lib[2:]
if not name in locale_libs: