A while ago I started getting errors stating my default locale is not correct in f ex update-grub, mkinitcpio and even inxi
inxi ✔
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US.UTF-8",
LC_ALL = (unset),
LC_ADDRESS = "sv_SE.UTF-8",
LC_COLLATE = "en_US.UTF-8",
LC_CTYPE = "sv_SE.UTF-8",
LC_IDENTIFICATION = "sv_SE.UTF-8",
LC_MEASUREMENT = "sv_SE.UTF-8",
LC_MESSAGES = "en_US.UTF-8",
LC_MONETARY = "sv_SE.UTF-8",
LC_NAME = "sv_SE.UTF-8",
LC_NUMERIC = "sv_SE.UTF-8",
LC_PAPER = "sv_SE.UTF-8",
LC_TELEPHONE = "sv_SE.UTF-8",
LC_TIME = "en_SE.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").
CPU: 12-core AMD Ryzen 9 7900X (-MT MCP-) speed/min/max: 3488/3000/5733 MHz
Kernel: 6.1.31-2-MANJARO x86_64 Up: 4m Mem: 2170.1/31832.4 MiB (6.8%)
Storage: 4.09 TiB (36.8% used) Procs: 546 Shell: Zsh inxi: 3.3.27
This makes zero sense to me, it is falling back to one of the locales that it is stating does not work??
cat /etc/locale.gen | tail -4 ✔
# Locales enabled by Calamares
en_US.UTF-8 UTF-8
sv_SE.UTF-8 UTF-8
#en_SE.UTF-8 UTF-8
cat /etc/locale.conf ✔ 4s
#LC_ALL=
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
#LC_COLLATE=C
LC_COLLATE=en_US.UTF-8
LC_CTYPE=sv_SE.UTF-8
#LC_MESSAGES=C
LC_MESSAGES=en_US.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION=sv_SE.UTF-8
cat ~/.config/plasma-localerc ✔
[Formats]
LANG=en_US.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_PAPER=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_TIME=en_SE.UTF-8
[Translations]
#LANGUAGE=en_US ## I changed to the line below to se if that was the culprit, it was not.
LANGUAGE=en_US.UTF-8
sudo locale-gen ✔ 10s
Generating locales...
en_US.UTF-8... done
sv_SE.UTF-8... done
Generation complete.
localectl ✔
System Locale: LANG=en_US.UTF-8
LC_CTYPE=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION=sv_SE.UTF-8
VC Keymap: sv-latin1
X11 Layout: se
locale -a ✔
C
C.UTF-8
en_US.utf8
POSIX
sv_SE.utf8
If I open up the Manjaro settings manager and go into locale settings, I can add en_SE.UTF-8 but It will not set anything in the detailed settings. When I press Apply, all settings to that locale just disappears.
So I opted to remove it completely and just use the “normal” locales until that works and THEN look into that. But maybe it’s connected?
I am so confused. I have been searching through forums for a week, reading arch and manjaro wikis and tutorials. I simply don’t understand why this suddenly broke.
Running mkinitcpio -P makes be a BIT nervous now…