Skip to content

Commit

Permalink
lxc-debian: don't write C.* locales to /etc/locale.gen
Browse files Browse the repository at this point in the history
Doing that confuses locale generation. lxc-ubuntu does the same check

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
  • Loading branch information
terceiro committed Oct 28, 2017
1 parent b25c853 commit c99055e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/lxc-debian.in
Expand Up @@ -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
Expand Down

0 comments on commit c99055e

Please sign in to comment.