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

git at git.openembedded.org git at git.openembedded.org
Thu May 19 15:14:35 UTC 2016


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

commit 5a5eac00c5c8d88e05995f6aa6d1d8f6b30bbfa3
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