diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-05-16 18:37:26 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-02 08:24:01 +0100 |
commit | aa10d71aeed6647a8a979040e4c2b2210bac4334 (patch) | |
tree | 975768b868e063e51d645426418715b0f43a9758 | |
parent | ddbd307244e3b165e6f75f72c09466a5c3d078a3 (diff) | |
download | poky-aa10d71aeed6647a8a979040e4c2b2210bac4334.tar.gz |
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>
-rw-r--r-- | 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 63955962f6..e5347ec4b7 100644 --- a/scripts/lib/wic/help.py +++ b/scripts/lib/wic/help.py | |||
@@ -45,7 +45,7 @@ def display_help(subcommand, subcommands): | |||
45 | if callable(hlp): | 45 | if callable(hlp): |
46 | hlp = hlp() | 46 | hlp = hlp() |
47 | pager = subprocess.Popen('less', stdin=subprocess.PIPE) | 47 | pager = subprocess.Popen('less', stdin=subprocess.PIPE) |
48 | pager.communicate(hlp) | 48 | pager.communicate(hlp.encode('utf-8')) |
49 | 49 | ||
50 | return True | 50 | return True |
51 | 51 | ||