From bf5ed38b39c61ac0dfc428817022ef46e3a062f6 Mon Sep 17 00:00:00 2001 From: imarom Date: Mon, 20 Feb 2017 12:44:59 +0200 Subject: TUI should skip any non-ascii chars Signed-off-by: imarom --- scripts/automation/trex_control_plane/stl/console/trex_tui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/automation/trex_control_plane/stl/console/trex_tui.py b/scripts/automation/trex_control_plane/stl/console/trex_tui.py index 37ef8000..b7a235de 100644 --- a/scripts/automation/trex_control_plane/stl/console/trex_tui.py +++ b/scripts/automation/trex_control_plane/stl/console/trex_tui.py @@ -848,7 +848,7 @@ class AsyncKeys: rc = self.STATUS_NONE # fetch the stdin buffer - seq = os.read(sys.stdin.fileno(), 1024).decode() + seq = os.read(sys.stdin.fileno(), 1024).decode('ascii', errors = 'ignore') if not seq: return self.STATUS_NONE -- cgit 1.2.3-korg