[gnome-continuous-yocto/gnomeostree-3.28-rocko: 608/8267] wic: encode help text



commit aa10d71aeed6647a8a979040e4c2b2210bac4334
Author: Ed Bartosh <ed bartosh linux intel com>
Date:   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]
    
    (From OE-Core rev: 23c27d9d936efaa17da00525f1d2e2f98c53abc7)
    
    Signed-off-by: Ed Bartosh <ed bartosh linux intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 scripts/lib/wic/help.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]