Unverified Commit a6b81a7d by Antonio Terceiro Committed by Stéphane Graber

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: 's avatarAntonio Terceiro <terceiro@debian.org>
parent 37d5831e
...@@ -99,7 +99,7 @@ EOF ...@@ -99,7 +99,7 @@ EOF
# reconfigure some services # reconfigure some services
# but first reconfigure locales - so we get no noisy perl-warnings # 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 cat >> $rootfs/etc/locale.gen << EOF
en_US.UTF-8 UTF-8 en_US.UTF-8 UTF-8
EOF EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment