Linux standalone: Improve generation of locale definition files, supporting locales such as, en_GB.UTF-8.
This commit is contained in:
parent
df5a0059ca
commit
95c8b37544
3 changed files with 24 additions and 1 deletions
|
@ -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.$$" &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue