set default system to en_US.UTF-8 (C.UTF-8 is not well supported)

https://sourceware.org/bugzilla/show_bug.cgi?id=17318
parent 387d67c4
......@@ -79,6 +79,7 @@ def init_params(provider, debver, workdir='.', verbose=False, dry_run=False):
params['deb_packages'] += ('perl',
'git',
'git-man',
'locales',
'libcurl3-gnutls',
'liberror-perl',
'libexpat1',
......
......@@ -17,8 +17,11 @@ echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4
chmod 600 $USERHOME/.ssh/authorized_keys
chown $VGRNT_UID:$VGRNT_GID $USERHOME/.ssh/authorized_keys
echo 'LANG=C.UTF-8' >> $VMROOT/etc/default/locale
echo 'LC_ALL=C.UTF-8' >> $VMROOT/etc/default/locale
echo "en_GB.UTF-8 UTF-8" >> /etc/locale.gen
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen # the old default, as a failsafe
locale-gen
echo 'LANG=en_US.UTF-8' > $VMROOT/etc/default/locale
echo 'LANGUAGE="en_US:en"' >> $VMROOT/etc/default/locale
if [ $DEB_DISTRO = 'stretch' ]; then
echo 'deb http://deb.debian.org/debian stretch-backports main contrib' > $VMROOT/etc/apt/sources.list.d/stretch-backports.list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment