-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmux fails to allow connection due to bad locale #2900
Comments
Actually this affects console and manual launch as well. |
If I set LC_CTYPE to "ANSI_X3.4-1968", tmux still works for me, both old 2.0 on the main system and 2.2 in a chroot. |
On Mon, 2016-07-04 at 22:48 -0700, mstorchak wrote:
Hmmmm... On Ubuntu 16.04: export LC_CTYPE='ANSI_X3.4-1968' And I see no way to generate that locale via dpkg-reconfigure locales. Basically the problem is that the ANSI locale is not universally Regards, Daniel |
@mstorchak Did you see my Ubuntu comment? |
I did, but I don't see how it helps to understand the root cause, I'm sorry. If not, please explain how to reproduce the issue. Looks like the change in tmux in question is tmux/tmux@0d6de44, so only check method is different, but not the check subject itself. |
What I try to ssh to the device from Ubuntu 16.04 tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968 when I try to use tmux. When I attempt to set Ubuntu local to ANSI_X.4-1968 I get the above error. My Ubuntu locale is UTF-8.en_CA (LANG=en_CA.UTF-8), default configuration So I ought to be in a UTF-8 locale. Perhaps this issue is that Ubuntu doesn't include LC_CTYPE=UTF-8.en_CA in the environemnt? I will investigate that possiblity later. |
You might try re-installing the locales package. I had a similar issue after upgrading to Debian Stretch, and that resolved it. |
@dfc-d Hi, Did you compile OpenWRT under ubuntu 16.04; I found the same issue when I compile the source code with ubuntu 16.04. But it was OK when I compiled with ubuntu 14.04
|
I did build with 16.04 but a more recent build (newer trunk) no longer gives me this issues; not sure if the issue was solved by an update.... |
@hnyman |
it is not, when i try to connect ssh with command linked tmux for attach it to a session, i have the same error. |
This worked for me:
Enjoy. |
I have the same problem but only if I compile openwrt image with glibc library. ulibc work fine. Do you know where is the problem? |
openwrt build with glibc does not have locale config files. 1. copy files from staging_dir/toolchain-xxx_glibc
2. make dirs for generate files
3. regenerate locale config
then reboot; |
Thank you, I will try it. |
Thank you very much. Your process works. I made it in the following way and put it into my makefile: package install section:
On the machine:
|
you might not want to remotely use your Linux machine with your PowerShell with Tmux just say'n |
@mstorchak
Attempting to ssh to a device which automatically starts tmux on login from ubuntu, results in the following error message:
tmux: need UTF-8 locale (LC_CTYPE) but have ANSI_X3.4-1968
It appears tmux locale handing has changed and broken.
The text was updated successfully, but these errors were encountered: