Martin Frezman
Posts: 1009
Joined: Mon Oct 31, 2016 10:05 am

Equivalent of dpkg reconfigure locales?

Wed Jan 18, 2017 11:35 pm

I have an alias (script) that depends on setting LANG=en_US.
The alias works fine on a properly configured system.

I recently setup a Raspbian system and the alias didn't work, until I did "dpkg reconfigure locales" - and made sure that en_US was properly installed.

Now, on Arch, it is failing in the same way, and I think it is due to not having the en_US locale setup correctly. So, how to fix?
If this post appears in the wrong forums category, my apologies.


Martin Frezman
Posts: 1009
Joined: Mon Oct 31, 2016 10:05 am

Re: Equivalent of dpkg reconfigure locales?

Thu Jan 19, 2017 11:51 am

TYVM.

For the impatient, it boils down to:

$ sudo vim /etc/locale.gen
(uncomment every line containing en_US)
$ sudo locale-gen
$ Now, alias/script works!

Note that locale-gen is a script, so it is examinable, but it recognizes no arguments (e.g., --help doesn't work as expected). Still, all good!
If this post appears in the wrong forums category, my apologies.

Return to “Arch”