<i18n dev> RFR: 8342582: user.region for formatting number no longer works for 21.0.5

Roger Riggs rriggs at openjdk.org
Tue Oct 22 21:31:05 UTC 2024


On Tue, 22 Oct 2024 18:09:57 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> This is a regression caused by the fix to [JDK-8321206](https://bugs.openjdk.org/browse/JDK-8321206), where the default locale with `user.region` creation is inadvertently broken. Fix is to restore the user.region override within StaticProperty initialization.

src/java.base/share/classes/jdk/internal/util/StaticProperty.java line 104:

> 102:         USER_REGION = getProperty(props, "user.region", "");
> 103:         if (!USER_REGION.isEmpty()) {
> 104:             // region can be of form country, country_variant, or _variant

typo "of form"? "region can be from"...

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21645#discussion_r1811465459


More information about the i18n-dev mailing list