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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6b81a7d1d946f0116c2564e44b558c72db88215;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 394bd4fba..95099e1e9 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