From 55f257b1228b3a78b0b69a42d28fe8f93b11168e Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Fri, 4 Nov 2016 16:15:40 -0200 Subject: createbocajail.sh: Generate en_US.UTF-8 locale Signed-off-by: Bruno Ribas --- tools/etc/icpc/createbocajail.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tools') diff --git a/tools/etc/icpc/createbocajail.sh b/tools/etc/icpc/createbocajail.sh index c5deb7b..a74d001 100755 --- a/tools/etc/icpc/createbocajail.sh +++ b/tools/etc/icpc/createbocajail.sh @@ -111,6 +111,11 @@ echo "*** Populating $homejail" cat < /home/bocajail/tmp/populate.sh #!/bin/bash mount -t proc proc /proc + +echo "LC_ALL=en_US.UTF-8" > /etc/default/locale +echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen +/usr/sbin/locale-gen +/usr/sbin/update-locale apt-get -y update apt-get -y install python-software-properties software-properties-common add-apt-repository -y ppa:brunoribas/ppa-maratona @@ -125,6 +130,8 @@ mkdir -p /bocajail/usr/bin [ -x /usr/bin/safeexec ] && cp -a /usr/bin/safeexec /bocajail/usr/bin/ cp -f /etc/apt/sources.list $homejail/etc/apt/ chmod 755 /home/bocajail/tmp/populate.sh + +export LC_ALL=en_US.UTF-8 cd / ; chroot $homejail /tmp/populate.sh -- cgit v1.2.3