Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I press the "é" key multiple times on my keyboard, here is what tmux print (notice the spaces) :

arcanis@~ > é é é é é é é é é é é é é

It also broke emacs when the file contains utf8 characters.

My locale is :

arcanis@~ > locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

How can I fix this ?

share|improve this question

migrated from serverfault.com Oct 21 '12 at 23:20

This question came from our site for system and network administrators.

    
Is tmux itself started in a UTF-8 locale? – Gilles Oct 21 '12 at 23:55
    
@Gilles Yes, the original locales are fr_FR.UTF-8 (except LC_ALL which is empty), and tmux is started using -u. – Nison Maël Oct 22 '12 at 0:31
1  
Try using the tmux command utf8 on and see if that helps. – Keith Oct 22 '12 at 2:06

.tmux.conf

set -g utf8 on

Fixed the exact same issue for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.