summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-16 18:37:26 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:24:01 +0100
commitaa10d71aeed6647a8a979040e4c2b2210bac4334 (patch)
tree975768b868e063e51d645426418715b0f43a9758 /scripts
parentddbd307244e3b165e6f75f72c09466a5c3d078a3 (diff)
downloadpoky-aa10d71aeed6647a8a979040e4c2b2210bac4334.tar.gz
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 <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/help.py2
1 files changed, 1 insertions, 1 deletions
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):
45 if callable(hlp): 45 if callable(hlp):
46 hlp = hlp() 46 hlp = hlp()
47 pager = subprocess.Popen('less', stdin=subprocess.PIPE) 47 pager = subprocess.Popen('less', stdin=subprocess.PIPE)
48 pager.communicate(hlp) 48 pager.communicate(hlp.encode('utf-8'))
49 49
50 return True 50 return True
51 51