[13] RFR: 8220227: Host Locale Provider getDisplayCountry returns error message under non-English Win10

Toshio 5 Nakamura TOSHIONA at jp.ibm.com
Fri Mar 8 06:25:05 UTC 2019


Hi,

Could you review this fix? I'd like to have a sponsor of it, since I'm an
author.

Bug: https://bugs.openjdk.java.net/browse/JDK-8220227
Webrev: http://cr.openjdk.java.net/~tnakamura/8220227/webrev.00/

Issue:
Under Windows 10 non-English, Locale.getDisplayCountry() shows an error
message,
if Host Locale Provider is used (-Djava.locale.providers=HOST).

Fix proposal:
The current code compares "Unknown Region (" with the result, but it could
be translated.
I believe we can compare it with "("+RegionCode+")", which covers all 38
Language
Packs of Windows Server 2016.

Thanks,
Toshio Nakamura


More information about the core-libs-dev mailing list