From: Antonio Terceiro Date: Fri, 27 Oct 2017 19:13:54 +0000 (-0200) Subject: lxc-debian: don't write C.* locales to /etc/locale.gen X-Git-Tag: lxc-2.0.10~609 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=393877502a16ecf4009b294a558187bd69c65c60;p=thirdparty%2Flxc.git lxc-debian: don't write C.* locales to /etc/locale.gen Doing that confuses locale generation. lxc-ubuntu does the same check Signed-off-by: Antonio Terceiro --- diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index d02ca7013..28a51433d 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -99,7 +99,7 @@ EOF # reconfigure some services # but first reconfigure locales - so we get no noisy perl-warnings - if [ -z "$LANG" ]; then + if [ -z "$LANG" ] || echo $LANG | grep -E -q "^C(\..+)*$"; then cat >> "$rootfs/etc/locale.gen" << EOF en_US.UTF-8 UTF-8 EOF