From 35b487a47f0cbb99fdee2ec9cc8b56b814c8860e Mon Sep 17 00:00:00 2001 From: Humberto Ibarra Date: Sat, 2 Jul 2016 13:17:56 -0500 Subject: [PATCH] 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] Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/lib/bsp/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py index 85a09dd29bb..311c5e41895 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 -- 2.47.3