#31 treecompose-post.sh: keep all supported LANGs
Merged by walters. Opened by jlebon.
jlebon/fedora-atomic pr/add-locales-master  into  master

Download 31.patch

In https://bugzilla.redhat.com/show_bug.cgi?id=1186757, it was
acknowledged that a just middle between deleting all the locales and
keeping them all was to only keep "supported" locales. There doesn't
seem to be such a list for Fedora, though RHEL does have one. So for
now, we piggyback on the RHEL definition as to what "supported" means.

As of right now, this increases the on-disk size of an F25 tree by 17M.
Its compressed size should be even more insignificant.

Is there a literal *.utf8 locale? Did you mean something like

lang=${locale%%.}
charset=${locale%%@
}
if test ${charset} != utf8; then
continue
fi
...
?

With double brackets, bash will treat the RHS as a pattern rather than a literal match.

Pull-Request has been merged by walters

Metadata