From d3f40f1d22787c791b164f60f2976f90a2e3b0f1 Mon Sep 17 00:00:00 2001 From: bryango Date: Thu, 5 Sep 2019 22:37:23 +0800 Subject: [PATCH] Force UTF-8 when attaching in `select-session.py` Call `tmux attach` with `-u` flag, which forces UTF-8. This is default in the main script `/usr/bin/byobu`, but not `select-session.py`, which will cause issues when connecting via ssh. For example, `ssh $SERVER byobu` will show unicode characters as underscores. --- usr/lib/byobu/include/select-session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/byobu/include/select-session.py b/usr/lib/byobu/include/select-session.py index 529f6df1..546e4af8 100755 --- a/usr/lib/byobu/include/select-session.py +++ b/usr/lib/byobu/include/select-session.py @@ -132,7 +132,7 @@ def attach_session(session): cull_zombies(session_name) # must use the binary, not the wrapper! if backend == "tmux": - os.execvp("tmux", ["tmux", "attach", "-t", session_name]) + os.execvp("tmux", ["tmux", "-u", "attach", "-t", session_name]) else: os.execvp("screen", ["screen", "-AOxRR", session_name])