Manjaro locale problems

Hello! Could you please help? Few days ago I got a problem with locale in my OS. It doesn’t print symbols from ru_RU locale correctly anymore.
My locale command show this:

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=ru
LC_CTYPE=«ru»
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE=«ru»
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES=«ru»
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=

And different applications and commands have problems with symbols. For example ls prints them like this:
''$'\320\260\320\261\320\262\320\263\320\264'
Some applications print them like “?”
Thanks in advance!

This is incorrect.
It should match the others;

ru_RU.UTF-8

What is the correct way to change that values?

Check /etc/locale.gen
The only uncommented line should be

ru_RU.UTF-8 UTF-8

Run

sudo locale-gen

Now double check /etc/locale.conf
It should appear something like

LANG=ru_RU.UTF-8
LC_CTYPE=ru_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

Another approach is to use the command

sudo localectl set-locale LANG=ru_RU.UTF-8

And the Archwiki has most everything:
https://wiki.archlinux.org/title/Locale

1 Like
1 Like

I tried both methods and also changing it by settings, but still have the same in 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=ru
LC_CTYPE="ru"
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE="ru"
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES="ru"
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=