Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431302 - unicode doesn't work when executing `tmux attach` instead of login shell
Summary: unicode doesn't work when executing `tmux attach` instead of login shell
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Dev box issues (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Infrastructure
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-14 01:52 UTC by Richard Yao (RETIRED)
Modified: 2012-08-16 17:49 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao (RETIRED) gentoo-dev 2012-08-14 01:52:08 UTC
If I use `ssh -t user@server tmux attach` to log into woodpecker, unicode doesn't work. But if I separate the steps, unicode magically works. Then if I do `ssh -t user@server env LANG=en_US.UTF-8 tmux attach`, unicode also works.

KingTaco in #gentoo-infra on freenode asked me to file a bug.
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2012-08-14 19:27:25 UTC
Well.. the default locale is POSIX.
"ssh woodpecker.gentoo.org locale"
Until you *login* and /etc/profile will be sourced, then you get en_US.UTF-8 by default.

So the solution would be to either login or we enable "AcceptEnv LANG LC_*" in the sshd_config so that you could use:
"ssh -o SendEnv=LANG woodpecker.gentoo.org locale"
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-08-16 06:31:00 UTC
newer SSH configs already include
/etc/ssh/ssh_config:SendEnv LANG LC_*
/etc/ssh/sshd_config:AcceptEnv LANG LC_*

So we should add these meanwhile.
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2012-08-16 08:37:58 UTC
(In reply to comment #2)
> newer SSH configs already include
> /etc/ssh/ssh_config:SendEnv LANG LC_*
> /etc/ssh/sshd_config:AcceptEnv LANG LC_*
> 
> So we should add these meanwhile.

Done for pecker, still need to do it in cfengine.

-A
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2012-08-16 17:49:37 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > newer SSH configs already include
> > /etc/ssh/ssh_config:SendEnv LANG LC_*
> > /etc/ssh/sshd_config:AcceptEnv LANG LC_*
> > 
> > So we should add these meanwhile.
> 
> Done for pecker, still need to do it in cfengine.
> 
> -A

Done.