]> git.proxmox.com Git - mirror_lxc.git/commitdiff
Correcting charset argument when calling locale-gen.
authorDaniel Baumann <daniel.baumann@progress-technologies.net>
Tue, 28 Dec 2010 20:32:51 +0000 (21:32 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 28 Dec 2010 20:32:51 +0000 (21:32 +0100)
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
templates/lxc-debian.in

index 0b7d711f951c8b07e14018c86dc6152cfafcc576..b3d16348f57b166e36d551f2fa84f8fb87901665 100644 (file)
@@ -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