-
Notifications
You must be signed in to change notification settings - Fork 104
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 pannel lines rendered wrongly when locale set to zh_CN #259
Comments
|
|
Would you like to test this? If you have root access in your WSL distribution,
|
The lines now render correctly but another problem appears: The tty cannot neither display cjk characters nor emojis. my current mintty config is
|
Another way is to pass |
Manipulating locale is a tricky issue which requires some background know-how. |
Did you actually check the locale set in the WSL shell? I suppose it's the default C.UTF-8. Try to set |
There are two problems:
|
Actually, as the mintty locale is not propagated towards WSL (where you have to set it explicitly), there is no benefit in setting this option for wsltty. I will add some documentation about this. |
Actually, while checking whether interworking of mintty with WSL could be enhanced on this issue, I cannot reproduce it. |
@Biswa96, I guess I should add |
Comment withdrawn. I'll tweak locale setup for a workaround. |
I had said that workaround first. Though it works I am not fully satisfied with it. |
Actually, I think this should be tweaked in cygwin rather than mintty. |
* Revised locale handling and setting, especially with option Locale. * Revised character width determination and setting, especially with option Locale. * Revised setup of GB18030 encoding support. * New option to enforce narrow ambiguous-width. * Do not clear/overwrite all locale categories anymore by option Locale. * Do not enforce UTF-8 encoding with WSL anymore. * Propagate locale settings with option --WSL (mintty/wsltty#259). * Do not enforce UTF-8 for WSL anymore. * New option value Charwidth=ambig-narrow. * New option OldLocale.
Released 3.4.1. |
Released 3.4.3 with further tweaks. |
when Locale is set to C, the panel lines look fine.
After I set the locale to zh_CN, which is
the tmux panel lines is rendered like
The lines looks weired and some chars have been overlapped by the lines.
My wsl is Ubuntu 2004 and the wsltty is 3.3.0
The text was updated successfully, but these errors were encountered: