Fix locale for the script

This commit is contained in:
Jeremy Gardais 2019-07-05 22:34:33 +02:00
parent dfeeab974a
commit 0dc5c0f8fb
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,12 @@ dpkg-reconfigure -f noninteractive tzdata
# manage locale {{{
NEW_L="en_US.UTF-8"
## Fix locale for the script
export LANGUAGE="${NEW_L}"
export LANG="${NEW_L}"
export LC_ALL="${NEW_L}"
## Generate new locale
sed -i -e "s/# \(${NEW_L} UTF-8\)/\1/" /etc/locale.gen
locale-gen
echo "LANG=\"${NEW_L}\"" > /etc/default/locale