[oe-commits] [openembedded-core] 09/21: wic: encode help text
git at git.openembedded.org
git at git.openembedded.org
Wed Jun 1 12:08:38 UTC 2016
rpurdie pushed a commit to branch python3
in repository openembedded-core.
commit 1e8cda8f7c8b79bc68d852c31a62bf1aca30ff71
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