mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ddbd307244
commit
aa10d71aee
@@ -45,7 +45,7 @@ def display_help(subcommand, subcommands):
|
|||||||
if callable(hlp):
|
if callable(hlp):
|
||||||
hlp = hlp()
|
hlp = hlp()
|
||||||
pager = subprocess.Popen('less', stdin=subprocess.PIPE)
|
pager = subprocess.Popen('less', stdin=subprocess.PIPE)
|
||||||
pager.communicate(hlp)
|
pager.communicate(hlp.encode('utf-8'))
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user