From: Daniel Baumann Date: Tue, 28 Dec 2010 20:32:51 +0000 (+0100) Subject: Correcting charset argument when calling locale-gen. X-Git-Tag: lxc-0.7.4-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57f61aa7504fc965b0c3dca2e1553ad535eacfd8;p=thirdparty%2Flxc.git Correcting charset argument when calling locale-gen. Signed-off-by: Daniel Lezcano --- diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index 0b7d711f9..b3d16348f 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -76,10 +76,10 @@ EOF # reconfigure some services if [ -z "$LANG" ]; then - chroot $rootfs locale-gen en_US.UTF-8 + chroot $rootfs locale-gen en_US.UTF-8 UTF-8 chroot $rootfs update-locale LANG=en_US.UTF-8 else - chroot $rootfs locale-gen $LANG + chroot $rootfs locale-gen $LANG $(echo $LANG | cut -d. -f2) chroot $rootfs update-locale LANG=$LANG fi