Something strange with my locale settings

Here is my etc/locale.conf file:

cat locale.conf
LANG=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_TIME=en_US.UTF-8

But you do locale command and you get this:

[mark@mark-optiplex9020 etc]$ 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=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

Is the last entry supposed to end in an equals sign, or should something be in there?

I can probably retrieve an older copy of these files from my timeshift backups, but don’t want to do it blind.

Thanks in advance for any advice.

[jman@jman-virtualbox ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

Matches what I have well. Seems normal.

1 Like

Everything seems to work but never seen those error messages before.

You could create them manually to resolve this section:

mine for example exists in here:

[jman@jman-virtualbox ~]$ cd /usr/lib/locale/C.utf8/
[jman@jman-virtualbox C.utf8]$ ls
LC_ADDRESS  LC_COLLATE  LC_CTYPE  LC_IDENTIFICATION  LC_MEASUREMENT  LC_MESSAGES  LC_MONETARY  LC_NAME  LC_NUMERIC  LC_PAPER  LC_TELEPHONE  LC_TIME

Although I will say I wasn’t able to locate the LC_ALL directory.

1 Like

I did find out that LC_ALl is supposed to stay blank, it’s for troubleshooting.

This link:

Update Mirrors (Arch) script not working in Welcome v3.41-2 - #10 by manuel seemed to point to the setting being commented out if a merge was done improperly. I found the same thing on my system, rebooted but its still there.

1 Like

Changed your earlier post to look more readable… :smile:

2 Likes

Fixed. After running sudo locale gen it all came back. Uncommenting the entry in the locale gen file was the necessary step.

Locale is behaving fine now, no error messages:

[mark@mark-optiplex9020 ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE=“en_US.UTF-8”
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=“en_US.UTF-8”
LC_MONETARY=en_US.UTF-8
LC_MESSAGES=“en_US.UTF-8”
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.