Stuck in Africa

…or more precisely: en_BW.UTF-8. At least, that’s what my “LANG” env variable says.
I only have English (UK & US) installed and some env variables are set to “nl_BE.UTF-8”.
Other than that, everything should be set to “en_GB.UTF-8”.

This is my ~/.profile:

...
test -z "$PROFILEREAD" && . /etc/profile || true
...
#export LANG=de_DE.UTF-8        # uncomment this line for German output
#export LANG=fr_FR.UTF-8        # uncomment this line for French output
#export LANG=es_ES.UTF-8        # uncomment this line for Spanish output
export LANG=en_GB.UTF-8

# setting optional locales
export LC_NAME=en_GB.UTF-8
export LC_ADDRESS=en_GB.UTF-8
export LC_TELEPHONE=nl_BE.UTF-8
export LC_MEASUREMENT=nl_BE.UTF-8
export LC_IDENTIFICATION=en_GB.UTF-8
...

No language changes were made in ~/.bashrc.

For some reason, “LANG” stays stuck to “en_BW.UTF-8” and I don’t know where it’s coming from.
Anyone else encountered this weird behaviour ?

TIA
Bart

Start with explaining how you login. In GUI, on text console, over network (ssh? VNC?) If you login into GUI - which desktop environment you use.

While the subject may be amusing, it is technical forum and more useful would be something like “incorrect value of LANG after login”.

I already thought I had caught some spam post and was on the brink of deleting.

GUI - KDE Plasma v5.27.6 - Wayland
Kernel 6.4.6-1.

What is the content of ~/.config/plasma-localerc?

1 Like

Bingo.

[Formats]
LANG=en_BW.UTF-8
LC_ADDRESS=C
LC_MONETARY=nl_BE.UTF-8
LC_NAME=C
LC_TELEPHONE=nl_BE.UTF-8
LC_TIME=C

[Translations]
LANGUAGE=en_GB:en_US

First time I see this file. Is it safe to manually change LANG here ?

Thanks !

This file is managed by KDE regional settings (not sure how it is called correctly, I do not use KDE often). You can simply delete it; it should be initialized on next login based on the current environment variables. Probably makes sense to have a copy just in case.

1 Like