Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: willbprog199 on 20 October 2022, 19:46:32

Title: Install instructions on wiki unclear about locales
Post by: willbprog199 on 20 October 2022, 19:46:32
Greetings!

When I was following the installation instructions, when I got to the locale section (https://wiki.artixlinux.org/Main/Installation#Localization), it's unclear what to put into /etc/locale.conf, although it mentions what to put into user's .profile and such.  To me, this was the only really unclear part of the instructions, and it caused Pidgin spellchecking to not work properly until I found an answer elsewhere.

Can this section be expanded to show an example for /etc/locale.conf?  I could edit that wiki entry, but would it be okay to do so (after getting a wiki account) or does someone else have to do it?

Thank you!  :D
Title: Re: Install instructions on wiki unclear about locales
Post by: Lancia on 20 October 2022, 21:03:07
is the:
Code: [Select]
export LANG="en_US.UTF-8"     <-- localize in your languages
export LC_COLLATE="C"
not an example?

Also when it says "(which is sourced by /etc/profile)" doesn't it imply that it should be in the form of a shell command?
Title: Re: Install instructions on wiki unclear about locales
Post by: willbprog199 on 20 October 2022, 21:26:51
Hi,

The help that I found elsewhere does not use export in the contents of /etc/locale.conf, so that's where the discrepancy is.  Is it okay to use export there as well?  Sorry, usually this is all set up for me using the installer on other distros so I don't deal with locale stuff very often.

Thanks!  :)
Title: Re: Install instructions on wiki unclear about locales
Post by: Lancia on 20 October 2022, 21:31:24
You won't need to use export since /etc/profile.d/locale.sh will do it for you anyway:
Code: [Select]
+ . /etc/profile.d/locale.sh
+ [ -z en_US.UTF-8 ]
+ LANG=en_US.UTF-8
+ export LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
Title: Re: Install instructions on wiki unclear about locales
Post by: willbprog199 on 20 October 2022, 21:42:56
You won't need to use export since /etc/profile.d/locale.sh will do it for you anyway:

Thanks.  Maybe this could be clarified on that wiki article then.  That was the only spot that was unclear to me -- everything else was okay to understand.

Thanks!  :)
Title: Re: Install instructions on wiki unclear about locales
Post by: tony26102 on 21 October 2022, 15:27:28
You won't need to use export since /etc/profile.d/locale.sh will do it for you anyway:
Code: [Select]
+ . /etc/profile.d/locale.sh
+ [ -z en_US.UTF-8 ]
+ LANG=en_US.UTF-8
+ export LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION
1. Do you assume the user start the machine with  a Live-Desktop and can access the internet?
2. Is possible to install the OS over a Live-Desktop but using the "CLI"?
3. Is not missing in your file/text [export LC_COLLATE="C"] like shown in the wiki?
4. When the changes are done ==> source /etc/profile.d/locale.sh?

In one point is the TS right: in the wiki is missing something and in this thread too.

Consider please that not all users come from Arch or Gentoo and can understand what you (and the wiki too) mean in each line or every-time.