fix: only enable UTF-8 locales

This commit is contained in:
AngeD 2023-03-14 20:42:03 +01:00
parent c6ceeae593
commit a3feecf1c0

View File

@ -13,7 +13,7 @@ cp -rfT rootfs/ /
ln -sf "/usr/share/zoneinfo/$tz" /etc/localtime
hwclock --systohc
for l in "${locales[@]}"; do
sed -i "/#\s*$l/s/^#\s*//" /etc/locale.gen
sed -i "/#\s*$l.UTF-8/s/^#\s*//" /etc/locale.gen
done
locale-gen
echo "LANG=$lang.UTF-8" > /etc/locale.conf