From f342218993aebb3ac0461e7f8591c60c6d842be7 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 3 Dec 2018 19:30:14 -0500 Subject: [PATCH] archlinux: Properly state how locales are created and used It turns out that locale.gen is used to generate the locales that can be set with locale.conf. --- .archlinux/install-scripts/003-configure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.archlinux/install-scripts/003-configure b/.archlinux/install-scripts/003-configure index 73e8d58..8079fde 100755 --- a/.archlinux/install-scripts/003-configure +++ b/.archlinux/install-scripts/003-configure @@ -23,13 +23,13 @@ echo "127.0.0.1 localhost" >> /mnt/etc/hosts echo "::1 localhost" >> /mnt/etc/hosts echo "127.0.1.1 $HOSTNAME.localdomain $HOSTNAME" >> /mnt/etc/hosts -# Set the language to English and use the en_US.UTF-8 locale. -echo "LANG=en_US.UTF-8" > /mnt/etc/locale.conf +# Declare which locales we want to generate and generate them sed -i '/#en_US.UTF-8 UTF-8/s/^#//g' /mnt/etc/locale.gen - -# Generate the locale. arch-chroot /mnt locale-gen +# Set the system locale to the generated en_US.UTF-8 +echo "LANG=en_US.UTF-8" > /mnt/etc/locale.conf + # Set the tty font to a larger one (same as the default setfont, but larger) if [ "$HIDPI" == "YES" ]; then echo "FONT=latarcyrheb-sun32" > /mnt/etc/vconsole.conf