Inxi -Fxxx Strange Locale Settings

[limo@limo ~]$ grep . $HOME/.config/plasma-localerc 
[Formats]
LANG=en_US.UTF-8
LC_MEASUREMENT=Default.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
[Translations]
LANGUAGE=en_GB:en_US
[limo@limo ~]$ grep . $HOME/.config/plasma-localerc 
[Formats]
LANG=en_US.UTF-8
LC_MEASUREMENT=Default.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
[Translations]
LANGUAGE=en_GB:en_US
[limo@limo ~]$ 

1 Like

Edit the file to this:

[Formats]
LANG=en_US.UTF-8

[Translations]
LANGUAGE=en_GB:en_US

Re-login and confirm the issue is gone.

Done but still:

[limo@limo ~]$ inxi -Fxxx
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_GB:en_US",
        LC_ALL = (unset),
        LC_MONETARY = "en_US.UTF-8",
        LC_MEASUREMENT = "Default.UTF-8",
        LC_TIME = "en_US.UTF-8",
        LC_NUMERIC = "en_US.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").

Sometimes, editing a KDE config file is reverted, if you are on an active KDE session.
Check if the contents are as you have modified them. The bad setting can only come from that file, since we have confirmed the system files are fine.
Alternatively, you can make the same changes from GUI/KDE System Settings, and apply them.

Settings ā†’ Locale ->ā€¦
I noticed when I select US I get two of each (for example ā€œRegionā€):

  • ā€œAmerican English (United States)ā€
  • "en-US (United States)

Tried switching between them ā€œApplyā€ button grey (no change)!
Funny!
The problem might be here or because

LC_ALL = (unset)

I donā€™t know, but I am just thinking loud with you!
What if we delete one of the two entries?
What if I select Defaults ā€œCā€?

Well, I think the solution is simple and already known.
Try more with Plasma setting locale and will make it.
I canā€™t get into your system. :person_shrugging:
LC_ALL has nothing to do, and as I said already, it should remain unset, for normal usage.
If you want to experiment, add in a dot file this and see what happens:

export LC_ALL="en_US.UTF-8"

but donā€™t ask for helpā€¦

If you actually want only one of them, set it like it.

1 Like

I changed everything to ā€œdefaultā€

[limo@limo ~]$ inxi -Fxxx
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US",
        LC_ALL = (unset),
        LC_MONETARY = "Default.UTF-8",
        LC_MEASUREMENT = "Default.UTF-8",
        LC_TIME = "Default.UTF-8",
        LC_NUMERIC = "Default.UTF-8",
        LANG = "Default.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

Anyway, I can use spell check in Zim Notes as I wanted and in Knotes as well.

So, it is fine with me.
Thank you very much for your care.

Sorted out as per this link:

[limo@limo ~]$ export LC_ALL=C.UTF-8
[limo@limo ~]$ inxi -Fxxx
System:
  Host: limo Kernel: 5.18.10-arch1-1 arch: x86_64 bits: 64 compiler: gcc
    v: 12.1.0 Desktop: KDE Plasma v: 5.25.3 tk: Qt v: 5.15.5 wm: kwin_x11 vt: 1
    dm: SDDM Distro: EndeavourOS base: Arch Linux

I will just reboot and see if it will stay OK.

UPDATE:
Rebooted, problem is back again as before.
Issuing the command:

export LC_ALL=C.UTF-8

Made it disappear as before.

How can I make ā€œexport LC_ALL=C.UTF-8ā€ permanent? sudo systemctl before export LC_ALL=C.UTF-8?

If you are using bash, then edit kate ~/.bash_profile.
OR
If you are using zsh, then edit kate ~/.zshrc to add:

export LANG=C.UTF-8
export LC_ALL=C.UTF-8

That did it!
Goshā€¦ it was very strange!
Thank you very much!
Thank you all for your patience and support.

Now - as a perfectionist - I feel much better though everything was working.
:partying_face:

Does not look like itā€¦ sorry to disagreeā€¦
If you were a perfectionist, you would have read Archwiki from the beginning and followed instructions.
You can do whatever you like on your system, butā€¦ just donā€™t advise anyone else to follow the same method.

In Archlinux, locale is handled with very concrete and perfect methods, including $XDG_CONFIG_HOME/locale.conf and others.
There is no problem not believing my advice is a solution. You may ask at Archlinux forum about your ā€œstrange Locale Settingsā€ and inform us about their answersā€¦ :joy:

2 Likes

Well, it is my fault. I am a perfectionist ā€œas much as I canā€. Honestly at that age (60+) I do not have much patience to be a perfect perfectionist! :rofl:
PLUS, I am not that techieā€¦ sometimes I find difficulty really understanding the technical stuff!
Finally, searching and searching I found this specific issue so common and in many distros.

Why would I leave home (here) and go to Arch forums?

I am happy here. :smile:

2 Likes

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