From 23c27d9d936efaa17da00525f1d2e2f98c53abc7 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 16 May 2016 18:37:26 +0300 Subject: 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 --- scripts/lib/wic/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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 -- cgit 1.2.3-korg