2

The Arch Linux wiki says to run locale -a and modify the file /etc/locale.gen as first steps to setting locale on an Arch Linux system.

However, on my system locale -a results in errors and the file /etc/local.gen does not exist. Also, the file /etc/local.conf does not exist either. Obviously there is some disconnect here about the assumptions the person who wrote the wiki article is making. What is it?

0

1 Answer 1

2

According to your question, you are looking for /etc/local.conf, however, the configuration is within /etc/locale.conf with a final "e". If it not exist you and you have writing permission on /etc/, then you can just:

echo LANG=en_US.UTF-8 > /etc/locale.conf 

and that would do it, of course this is an example just with language, you can do what ever locale configuration you'd like.

3
  • yep it was a typo sorry about that, well at least you got an accepted answer :-) Commented Jan 4, 2019 at 17:04
  • /usr/share/i18n/SUPPORTED Commented Aug 4, 2023 at 16:45
  • This is exactly what I have in /etc/locale.conf, yet I constantly see errors like perl: warning: Please check that your locale settings: Commented Apr 22, 2024 at 8:04

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.