hey!
during the installation of endeavouros i made the mistake of setting everything to the en_us locale. this is a bad experience because of the am/pm nonsense and i want my c locale back.
i tried some changes.
locale.gen has:
en_US.UTF-8 UTF-8 #added by calamares
C.UTF-8 UTF-8 #added manually, is that good?
is endeavour overriding the locale somewhere or am i messing up? i don’t want to become american by prolonged exposure to their locale, pls help.
i’m on i3 but not the automatic install, i installed without a desktop and added i3 manually. my display manager is ly.
i specifically want to set C (or preferably, utf8 equivalent of C) on everything except LANG, not my country’s locale, but i can’t find a C locale in /etc/locale.gen so i added it.
that’s what confuses me, i followed the syntax but with C and it didn’t work.
I think if you select no locale in locale.gen and run locale-gen it will default to C.UTF-8, but I could be wrong. At least that is how the archiso tools build the ISO. There is a locale.conf file in /etc with one line:
in my locale.conf (using syntax from your LANG=C.UTF-8 example) and it worked if i sudo locale-gen and then source /etc/profile.d/locale.sh but the settings were reverted to all en_US after a reboot.
export LC_ALL=C.UTF-8; export LANG="en_US.UTF-8" is exactly what i’m looking for but when i set those settings in my locale.conf i lose them after a reboot and it’s back to en_US again.
now this is weird, localectl shows the new correct values while locale shows the old ones. the system uses the old ones (date shows with am/pm)
i guess i’ll try regenerating initrd then and see if that helps
I was having a very similar issue about a month ago when I did a new install of EOS on a new machine. I’ll try and look through my command history to see what it was that finally worked.
yeah, i read it but i couldn’t figure it out. the closest i got is that unset LANG && source /etc/profile.d/locale.sh in the “2.3 make locale changes immediate” section helps temporarily, until reboot.
Okay, some of this may be a repeat of what you did before, so my apologies.
What’s the output of localectl list-locales?
and localectl status?
Is there any chance that you have a file ~/.local/locale.conf? If so, this could be causing a conflict. It’s not always there, so don’t be surprised if it’s not.
The interesting thing is that whatever you save to your /etc/locale.conf should be saved and not revert upon reboot.
@eznix is correct, if no locale is set, the system should revert to C.UTF-8