]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: encode help text
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 16 May 2016 15:37:26 +0000 (18:37 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jun 2016 07:10:03 +0000 (08:10 +0100)
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>
scripts/lib/wic/help.py

index 63955962f62c899a4fddedfd9fd300b29866e3f5..e5347ec4b7c900c68fc64351a5293e75de0672b3 100644 (file)
@@ -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