summaryrefslogtreecommitdiff
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:10:03 +0100
commit23c27d9d936efaa17da00525f1d2e2f98c53abc7 (patch)
tree02736a9d8869f2ffc6cdcac7eb89a3c3b06f3360
parentea6245d2383e2ba905ef9f1ba210e5dadc779ad8 (diff)
downloadopenembedded-core-23c27d9d936efaa17da00525f1d2e2f98c53abc7.tar.gz
openembedded-core-23c27d9d936efaa17da00525f1d2e2f98c53abc7.tar.bz2
openembedded-core-23c27d9d936efaa17da00525f1d2e2f98c53abc7.zip
wic: encode help text
Encoded help text before sending it to pager.communicate as it expects binary. [YOCTO #9412] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
if callable(hlp):
hlp = hlp()
pager = subprocess.Popen('less', stdin=subprocess.PIPE)
- pager.communicate(hlp)
+ pager.communicate(hlp.encode('utf-8'))
return True