From bba250255a6245543d4303361426ff5778eba5a6 Mon Sep 17 00:00:00 2001 From: Abe Voelker Date: Sat, 4 Jan 2014 16:04:38 -0600 Subject: [PATCH] Fix broken locale in Ubuntu boxes --- boxes/build-ubuntu-box.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boxes/build-ubuntu-box.sh b/boxes/build-ubuntu-box.sh index a0ba1de..cbe3ebc 100755 --- a/boxes/build-ubuntu-box.sh +++ b/boxes/build-ubuntu-box.sh @@ -61,6 +61,10 @@ fi # See https://github.com/fgrehm/vagrant-lxc/issues/91 for more info echo 'ff02::3 ip6-allhosts' >> ${ROOTFS}/etc/hosts +# Ensure locales are properly set, based on http://askubuntu.com/a/238063 +chroot ${ROOTFS} locale-gen en_US.UTF-8 +chroot ${ROOTFS} dpkg-reconfigure locales + ################################################################################## # 2 - Prepare vagrant user