From c99055ea6d64e003b489e01a0379275699c794d0 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 8ee0f95b0a..4b92328f26 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