| Index: android/patch_locale.sh
|
| diff --git a/android/patch_locale.sh b/android/patch_locale.sh
|
| index aa575fb492b5987dfcd9e3840ba5b97a32bf8a9b..929fa3d47b60caa4918f28f5c18e9734a510e701 100755
|
| --- a/android/patch_locale.sh
|
| +++ b/android/patch_locale.sh
|
| @@ -86,12 +86,23 @@ done
|
|
|
|
|
| # Excludes region data. On Android Java API is used to get the data.
|
| +# Due to a bug in ICU, an empty region list always uses 70kB pool.res bundle.
|
| +# As a work around, include the minimal version of en.txt
|
| echo Overwriting region/reslocal.mk...
|
| cat >region/reslocal.mk <<END
|
| REGION_CLDR_VERSION = %version%
|
| REGION_SYNTHETIC_ALIAS =
|
| REGION_ALIAS_SOURCE =
|
| -REGION_SOURCE =
|
| +REGION_SOURCE = en.txt
|
| +END
|
| +
|
| +echo Overwriting region/en.txt...
|
| +cat >region/en.txt <<END
|
| +en{
|
| + Countries{
|
| + US{"United States"}
|
| + }
|
| +}
|
| END
|
|
|
| # On Android Java API is used to get lang data, except for the language and
|
| @@ -179,6 +190,7 @@ for i in locales/*.txt; do
|
| echo Overwriting $i...
|
| sed -r '/^ calendar\{$/,/^ \}$/ {
|
| /^ calendar\{$/p
|
| + /^ default\{".*"\}$/p
|
| /^ '${CAL_PATTERN}'\{$/, /^ \}$/p
|
| /^ \}$/p
|
| d
|
|
|