From: Ed Bartosh Date: Mon, 16 May 2016 15:37:26 +0000 (+0300) Subject: wic: encode help text X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa10d71aeed6647a8a979040e4c2b2210bac4334;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wic: encode help text Encoded help text before sending it to pager.communicate as it expects binary. [YOCTO #9412] (From OE-Core rev: 23c27d9d936efaa17da00525f1d2e2f98c53abc7) 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 63955962f62..e5347ec4b7c 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