From 71bc7fd8ce9ba4db13ca82f56ff7d8ab8b2a279f Mon Sep 17 00:00:00 2001 From: Humberto Ibarra Date: Sat, 2 Jul 2016 13:17:56 -0500 Subject: scripts/lib/bsp/help.py: Fixed pager for yocto-bsp help Python3 requires strings to be encoded as bytes before sending them through a subprocess pipe. The help.py file is not considering this and fails when issuing paged help commands. This patch adds this encoding to solve the problem. [YOCTO #9868] (From meta-yocto rev: 35b487a47f0cbb99fdee2ec9cc8b56b814c8860e) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/lib/bsp/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/lib/bsp/help.py') diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py index 85a09dd29b..311c5e4189 100644 --- a/scripts/lib/bsp/help.py +++ b/scripts/lib/bsp/help.py @@ -42,7 +42,7 @@ def display_help(subcommand, subcommands): help = subcommands.get(subcommand, subcommand_error)[2] pager = subprocess.Popen('less', stdin=subprocess.PIPE) - pager.communicate(help) + pager.communicate(bytes(help, 'UTF-8')) return True -- cgit v1.2.3-54-g00ecf