You are not logged in.

#1 2023-03-12 03:54:15

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 43
Website

[Solved]locale problem

good evening.

I'm a Japanese and using locale ja_JP.UTF-8.

setting /etc/locale.conf to:

LANG=ja_JP.UTF-8

I want to use computer as a user with locale LANG=ja_JP.UTF-8 but as a root with locale LANG=C.
because the console don't display Japanese correctly.
Is there the way to set locale ja_JP.UTF-8 as a user and set locale C as a root.
I'm using cinnamon desktop as a user.
Please tell me how to do it.

regards.

Last edited by fygar256 (2023-03-12 07:53:09)

Offline

#2 2023-03-12 05:34:10

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 43
Website

Re: [Solved]locale problem

Solved.
I left /etc/locale.conf as:

LANG=ja_JP.UTF-8

and done:

# echo "export LANG=C" >/root/.bash_profile

now I have English root console log in and Japanese X cinnamon desktop and terminal.
Thank You.

Last edited by fygar256 (2023-03-12 07:17:31)

Offline

#3 2023-03-12 07:19:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,358

Re: [Solved]locale problem

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Ftr, try C.UTF-8 or en_US.UTF-8 (you'll still have to generate the latter)

because the console don't display Japanese correctly

Install and use a monospace font w/ utf8 coverage for kana/kanji
See https://bbs.archlinux.org/viewtopic.php?id=284134 if your TE is struggling with variable-width fonts

Offline

Board footer

Powered by FluxBB