From: Ed Bartosh Date: Mon, 16 May 2016 15:37:26 +0000 (+0300) Subject: wic: encode help text X-Git-Tag: uninative-1.3~866 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=23c27d9d936efaa17da00525f1d2e2f98c53abc7;p=openembedded-core.git wic: encode help text Encoded help text before sending it to pager.communicate as it expects binary. [YOCTO #9412] Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py index 63955962f6..e5347ec4b7 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py @@ -45,7 +45,7 @@ def display_help(subcommand, subcommands): if callable(hlp): hlp = hlp() pager = subprocess.Popen('less', stdin=subprocess.PIPE) - pager.communicate(hlp) + pager.communicate(hlp.encode('utf-8')) return True