byobu on restoring session does not display utf-8 symbols

Bug #1696542 reported by Srinivas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
byobu
Invalid
Low
Unassigned

Bug Description

When i open a new session the symbols like the logo are displayed correctly.

If I detach the session and then open again they are not displayed at all.

This also affects vim-airline in neovim.

If I detach a session in tmux and restore with tmux -u option this error does not occur. (Hope this helps)

I use byobu 5.116 and tmux 2.3 in ubuntu 17.04

Tags: logo utf-8
Revision history for this message
Srinivas (kronos29296) wrote :
Revision history for this message
Srinivas (kronos29296) wrote :

def attach_session(session):
 update_environment(session)
 backend, session_name = session.split("____", 2)
 cull_zombies(session_name)
 # must use the binary, not the wrapper!
 if backend == "tmux":
  os.execvp("tmux", ["tmux","-u", "-2", "new-session", "-t", session_name, "-s", "_%s-%i" % (session_name, os.getpid())])
 else:
  os.execvp("screen", ["screen", "-AOxRR", session_name])

Adding -u parameter in os.execvp in /usr/lib/byobu/include/select-session.py Fixes the issue.

As I don't know how to use bazaar I am putting the fix here. Please fix it.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hmm, that's not going to be the correct fix for everyone... You would be better served by setting your LC_ALL, LC_CTYPE and LANG environment variables correctly.

See man tmux:

     -u When starting, tmux looks for the LC_ALL, LC_CTYPE and LANG environment variables: if the first found con‐
                   tains ‘UTF-8’, then the terminal is assumed to support UTF-8. This is not always correct: the -u flag
                   explicitly informs tmux that UTF-8 is supported.

Changed in byobu:
importance: Undecided → Low
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.