From abce91a1808afd95603e570d72482d032648ca5d Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 28 Feb 2018 15:42:25 +0100 Subject: [PATCH] decode `ret` into str for consistency. --- SConstruct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index b8ce6cfbc..a27cb2340 100644 --- a/SConstruct +++ b/SConstruct @@ -835,8 +835,8 @@ int main() { else: ret = call("icu-config --icudatadir", silent=True) if ret: - context.Result('icu-config returned %s' % ret) - return ret + context.Result('icu-config returned %s' % ret.decode("utf8")) + return ret.decode('utf8') else: context.Result('Failed to detect (mapnik-config will have null value)') return ''