You are not logged in.
Pages: 1
DE: Xfce4
I want to have my desktop to have a Japanese locale. However, since attempting this, some programs like perl and man give me errors.
What I did was uncomment the required en_US.UTF-8 UTF-8 locale as well as ja_JP.UTF-8 UTF-8 before generating using locale-gen to generate the locale. in /etc/locale.conf I have LANG=ja_JP.UTF-8 UTF-8 as the only uncommented entry.
[me@mydesktop `]$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=ja_JP.UTF-8\ UTF-8
LC_CTYPE="ja_JP.UTF-8 UTF-8"
LC_NUMERIC="ja_JP.UTF-8 UTF-8"
LC_TIME="ja_JP.UTF-8 UTF-8"
LC_COLLATE="ja_JP.UTF-8 UTF-8"
LC_MONETARY="ja_JP.UTF-8 UTF-8"
LC_MESSAGES="ja_JP.UTF-8 UTF-8"
LC_PAPER="ja_JP.UTF-8 UTF-8"
LC_NAME="ja_JP.UTF-8 UTF-8"
LC_ADDRESS="ja_JP.UTF-8 UTF-8"
LC_TELEPHONE="ja_JP.UTF-8 UTF-8"
LC_MEASUREMENT=metric
LC_IDENTIFICATION="ja_JP.UTF-8 UTF-8"
LC_ALL=
This is the from the /var/log/pacman.log after today's update:
[2024-12-07T12:00:45-0500] [ALPM] running 'dbus-reload.hook'...
[2024-12-07T12:00:45-0500] [ALPM] running 'detect-old-perl-modules.hook'...
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] perl: warning: Setting locale failed.
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] perl: warning: Please check that your locale settings:
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LANGUAGE = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_ALL = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_CTYPE = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_NUMERIC = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_COLLATE = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_TIME = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_MESSAGES = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_MONETARY = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_ADDRESS = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_IDENTIFICATION = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_MEASUREMENT = "metric",
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_PAPER = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_TELEPHONE = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LC_NAME = (unset),
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] LANG = "ja_JP.UTF-8 UTF-8"
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] are supported and installed on your system.
[2024-12-07T12:00:45-0500] [ALPM-SCRIPTLET] perl: warning: Falling back to the standard locale ("C").
[2024-12-07T12:00:45-0500] [ALPM] running 'gtk-update-icon-cache.hook'...
[2024-12-07T12:00:45-0500] [ALPM] running 'texinfo-install.hook'...
[2024-12-07T12:00:45-0500] [ALPM] running 'update-desktop-database.hook'...
This is the output I get when I use the man command and press q to exit the document:
[me@mydesktop `]$ man vim
man: can't set the locale; make sure $LC_* and $LANG are correct
the only actual functional problem I've noticed is that underscores do not show in the terminal, making spaces and underscores confused.
Is this a real problem? How would I attempt to diagnose and fix it?
Last edited by voltfray (2024-12-07 19:33:23)
聞くは一時の恥、聞かぬは一生の恥
Offline
in /etc/locale.conf I have LANG=ja_JP.UTF-8 UTF-8 as the only uncommented entry.
And that's wrong. See https://wiki.archlinux.org/title/Instal … calization
Offline
Thank you for responding.
When the installation guide says:
Create the locale.conf(5) file, and set the LANG variable accordingly:
/etc/locale.conf
LANG=en_US.UTF-8
does it mean to imply that you MUST have en_US.UTF-8 specifically as the first uncommented entry? I interpreted it to mean that the entry must be according to your localization preference, which is Japanese in my case.
From https://wiki.archlinux.org/title/Locale:
Tip: Assume that you are an English user in Spain, and you want your programs to handle numbers and dates according to Spanish conventions, and only the messages should be in English. Then you could set the LANG variable to es_ES.UTF-8 and the LC_MESSAGES (user interface for message translation) variable to en_US.UTF-8.
*end quote*
Does this perhaps imply that that your assessment of my problem is incorrect?
If the entry must be en_US.UTF-8, how do I tell Arch to have everything possible in Japanese? Would that involve adding LANGUAGE=ja_JP.UTF-8 UTF-8 and/or other entries to /etc/locale.conf? Currently programs seem to understand that the locale is Japanese, save for the ones giving me error messages.
聞くは一時の恥、聞かぬは一生の恥
Offline
No, but it says 'en_US.UTF-8', not 'en_US.UTF-8 UTF-8'
Offline
Thank you so much. No locale errors, and now things that were in English before are now Japanese.
Incorrect:
/etc/locale.conf
LANG=ja_JP.UTF-8 UTF-8
Correct:
/etc/locale.conf
LANG=ja_JP.UTF-8
聞くは一時の恥、聞かぬは一生の恥
Offline
Pages: 1