[oe-commits] [openembedded-core] 07/07: wic: encode help text

git at git.openembedded.org git at git.openembedded.org
Wed May 18 22:47:40 UTC 2016


rpurdie pushed a commit to branch python3
in repository openembedded-core.

commit 2b5d331cef6a5a084a59be0432e94df1b942c50c
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Mon May 16 18:37:26 2016 +0300

    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 at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/lib/wic/help.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py
index 6395596..e5347ec 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
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list