From a6b81a7d1d946f0116c2564e44b558c72db88215 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 27 Oct 2017 17:13:54 -0200 Subject: [PATCH] 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 --- templates/lxc-debian.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3