I usually config my ubuntu via
sudo locale-gen --purge en_US.UTF-8
And I've the installed locales
# locale -a
C
C.UTF-8
en_US.utf8
POSIX
Is it okay since I am missing en_US
?
I usually config my ubuntu via
sudo locale-gen --purge en_US.UTF-8
And I've the installed locales
# locale -a
C
C.UTF-8
en_US.utf8
POSIX
Is it okay since I am missing en_US
?
Yes, you're probably quite fine. Assuming
en_US.utf8
contains a UTF-8 American/English locale, it should work just fine. That's what I use myself:If you run
locale -v -a
, it'll be a bit more descriptive:The only difference between
en_US
anden_US.utf8
is that the former uses ISO-8859-1 for a character set, while the latter uses UTF-8. Prefer UTF-8. The only difference in these is in what characters they are capable of representing. ISO-8859-1 represents characters common to many Americans (the English alphabet, plus a few letters with accents), whereas UTF-8 encodes all of Unicode, and thus, just about any language you can think of. UTF-8, today, is a defacto standard encoding for text. (Which is why you should prefer it.)en_US.utf8 contains everything ASCII does but I don't think it covers any more than that. Your system won't be able to print/view characters other than those and will display a box (or a box with a question mark in it) when it encounters one of these unknown characters.