Linux standalone: Improve generation of locale definition files, supporting locales such as, en_GB.UTF-8.

This commit is contained in:
Joey Hess 2016-12-19 17:03:52 -04:00
parent df5a0059ca
commit 95c8b37544
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
3 changed files with 24 additions and 1 deletions

View file

@ -132,7 +132,7 @@ for localeenv in "$LANG" "$LANGUAGE" "$LC_CTYPE" "$LC_NUMERIC" "$LC_TIME" \
if [ "$localeenv" != "$lastlocaleenv" ]; then
lastlocaleenv="$localeenv"
if [ ! -d "$base/locales/$localeenv" ]; then
if [ "${localeenv##[!.]*.}" = "utf8" ]; then
if [ "${localeenv##[!.]*.}" = "utf8" ] || [ "${localeenv##[!.]*.}" = "UTF-8" ]; then
(
rm -rf "$base/locales/$localeenv.new.$$" &&
mkdir -p "$base/locales/$localeenv.new.$$" &&