mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.12k stars 104 forks source link

<ffffffff> instead of russian text #279

Closed habamax closed 3 years ago

habamax commented 3 years ago

Sorry if the issue is not wsltty related...

When I try to input Russian text I get <ffffffff> instead of russian letters:

echo привет becomes this: image

On the other hand if I try wsl in cmd.exe:

image

And if you paste it into wsltty: image

habamax commented 3 years ago

Windows terminal is ok too: image

Vim in wlstty has no issue with russian too: image

habamax commented 3 years ago

Locale: image

PS, I "remember" I had no issues entering russian text in some of the previous versions, but I am not sure :)

habamax commented 3 years ago

well :)

Locale=en_EN
Charset=UTF-8

in config file fixes the issue.

Biswa96 commented 3 years ago

Looks like we need some documentation about locale.

mintty commented 3 years ago

Works here, also with Locale=ru_RU. Could be a zsh issue, have you tried another shell or simply cat?

habamax commented 3 years ago

bash was partially ok: some letters were "unprintable" and I could backspace the whole prompt for some reason.

habamax commented 3 years ago

And I have just checked locale -a: there is no ru_RU in my debian so this was the issue.

mintty commented 3 years ago

OK, thanks for feedback. You can create a locale. I noted somewhere how it works, it's tricky and poorly documented.