Skip to content
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

Garbled characters with ja_JP.eucJP encoding #34

Open
bukatlib opened this issue Nov 9, 2020 · 2 comments
Open

Garbled characters with ja_JP.eucJP encoding #34

bukatlib opened this issue Nov 9, 2020 · 2 comments
Labels

Comments

@bukatlib
Copy link

bukatlib commented Nov 9, 2020

tcsh garbles characters when eucJP encoding is used.
$ LANG=ja_JP.eucJP LC_ALL=ja_JP.eucJP tcsh
tcsh $ unknown_command
unknown_command: <garbled_characters>.

Note that it works when UTF-8 encoding is used instead.
$ LANG=ja_JP.UTF-8 LC_ALL=ja_JP.UTF-8 tcsh
tcsh $ unknown_command
unknown_command: コマンドが見つかりません.

I got the same results on Solaris and Linux with tcsh 6.22.02 installed.
It looks like that only UTF-8 is considered in NLSClassify function (commit 4b12ecb).

Thank you for your help and feedback.

@zoulasc
Copy link
Member

zoulasc commented Dec 3, 2020 via email

@bukatlib
Copy link
Author

bukatlib commented Dec 7, 2020

On Solaris:
$ nlsadm set-system-locale ja_JP.eucJP
$ init 6

On Fedora Linux:
$ dnf install vlgothic-fonts
$ localectl set-locale LANG=ja_JP.eucJP

Afterwards, you can run the following command to see garbled characters:
LANG=ja_JP.eucJP LC_ALL=ja_JP.eucJP tcsh
tcsh $ unknown_command
unknown_command: <garbled_characters>.

@suominen suominen added the bug label Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants