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-3.0.0.beta1~206^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c99055ea6d64e003b489e01a0379275699c794d0;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 8ee0f95b0..4b92328f2 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -122,7 +122,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