-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
LANG and LC_CTYPE env variables cause many issues with unicode chars #607
Comments
The workaround solves my issue #589. |
Not fully worked for me with locale I checked the locale: $ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: ?????????? ?????????? LC_ALL ? ?????? ?? ?????????.: ??? ?????? ????? ??? ????????
LANG=ru_RU.UTF-8
LANGUAGE=ru_RU
LC_CTYPE=ru.UTF-8
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL= I saw that the variable So for me, a working version was like this: export LANG=ru_RU.UTF-8
export LC_CTYPE=ru_RU.UTF-8 Put this to your |
Works for me as well had locale errors when using ssh client |
Hi guys, I had the same issue, here's what I did to fix it (no é, è, à, ù, etc characters were well displayed) : Made sure my library language was installed: Hope it helps! |
this also causes problems with ssh tab-completion. |
Hello, |
Hyperterm sets LANG variable in
app/session.js
, but the way we are doing it creates some problems.Since LC_CTYPE inherits from LANG variable, if the locale name returned by app.getLocale() is not an XPG syntax described by gnu.org here (
LANGUAGE_TERRITORY.CHARSET
) and it's not found in locales listlocale -a
, shell will fail with some unicode special chars, causing issues like #183, #597, #441 and probably #589.I also noticed that, if locale is not set correctly like described above, alt key is used as metakey, despite hterm 'alt-sends-what' is set to 'browser-key' here.
A temporary workaround is to manually set the right locale for you in your
.bashrc
/.zshrc
: for me it'sexport LANG=it_IT.UTF-8
.Hope it helps 😄
The text was updated successfully, but these errors were encountered: