Fix frameworks/base/tools/localedata/extract_icu_data.py
LocaleDataTables.cpp will be generated in a separate CL. likelySubtags.txt has been removed from ICU4C. ICU4C reads the encoded mapping from lsrnum in external/icu/icu4c/source/data/misc/langInfo.txt instead. For this script, we read the text mapping from likelySubtags.xml in CLDR instead for simplicity. The size of mapping increases significantly due to CLDR-16380 fixed in CLDR 44. Bug: 330126402 Test: croot frameworks/base && ./tools/localedata/extract_icu_data.py $ANDROID_BUILD_TOP > libs/androidfw/LocaleDataTables.cpp Change-Id: I66b83035ad858ab9482a981c6e63be104741cd52
Loading
Please register or sign in to comment