I recently updated my Arch Linux server and during that process tmux got updated. I was using tmux while the upgrade was going on and used it afterwards, but all during the same SSH session.
Now, however, whenever I try to issue any tmux command I get this error:
tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968
Here's the output from locale -a on the server:
$ locale -a
C
POSIX
and on my machine (Ubuntu 15.10):
$ locale -a
C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX
What's going on and how do I fix it?