Fix locale for the script
This commit is contained in:
parent
dfeeab974a
commit
0dc5c0f8fb
|
@ -24,6 +24,12 @@ dpkg-reconfigure -f noninteractive tzdata
|
||||||
# manage locale {{{
|
# manage locale {{{
|
||||||
|
|
||||||
NEW_L="en_US.UTF-8"
|
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
|
sed -i -e "s/# \(${NEW_L} UTF-8\)/\1/" /etc/locale.gen
|
||||||
locale-gen
|
locale-gen
|
||||||
echo "LANG=\"${NEW_L}\"" > /etc/default/locale
|
echo "LANG=\"${NEW_L}\"" > /etc/default/locale
|
||||||
|
|
Loading…
Reference in New Issue