<i18n dev> RFR: 8263202: Update Hebrew/Indonesian/Yiddish ISO 639 language codes to current
Joe Wang
joehw at openjdk.java.net
Tue May 18 22:53:39 UTC 2021
On Mon, 17 May 2021 16:55:35 GMT, Naoto Sato <naoto at openjdk.org> wrote:
> Please review the changes to the subject issue. java.util.Locale class has a long-standing issue for those obsolete ISO 639 languages where its normalization ends up in the obsolete codes. This change intends to flip the normalization towards the current codes, providing a system property for compatibility behavior. ResourceBundle class is also modified to load either obsolete/current bundles. For more detail, take a look at the CSR.
src/java.base/share/classes/java/util/Locale.java line 462:
> 460: * backward compatible forms.
> 461: *
> 462: * <p>The APIs added in 1.7 map between the old and new language codes,
This paragraph needs a rewrite as well it seems, esp. the part that states "getLanguage and toString reflect the old code" is no longer true.
test/jdk/java/util/Locale/LocaleTest.java line 683:
> 681: * @bug 4052404 4778440 8263202
> 682: */
> 683: public void TestChangedISO639Codes() {
Could probably be simplified with a DataProvider.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4069
More information about the i18n-dev
mailing list