From 57f61aa7504fc965b0c3dca2e1553ad535eacfd8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 28 Dec 2010 21:32:51 +0100 Subject: [PATCH] Correcting charset argument when calling locale-gen. Signed-off-by: Daniel Lezcano --- templates/lxc-debian.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2