-
Bug
-
Resolution: Fixed
-
P3
-
8, 11, 13, 15, 16
-
b22
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8264771 | 15.0.4 | Yuri Nesterenko | P3 | Resolved | Fixed | b01 |
JDK-8261086 | 11.0.12-oracle | Dukebot | P3 | Resolved | Fixed | b01 |
JDK-8261667 | 11.0.12 | Severin Gehwolf | P3 | Resolved | Fixed | b01 |
JDK-8262135 | openjdk8u302 | Severin Gehwolf | P3 | Resolved | Fixed | b01 |
JDK-8261165 | 8u301 | Ravi Reddy | P3 | Resolved | Fixed | b01 |
On default, Locale.ROOT comes from JRE, Locale.US comes from CLDR.
Testcase and output is as follows
=========================
$ cat ISO3166.java
import java.util.*;
public class ISO3166 {
public static void main(String[] args) {
for (String s : args) {
Locale loc = new Locale.Builder().setRegion(s).build();
String root = loc.getDisplayCountry(Locale.ROOT);
String us = loc.getDisplayCountry(Locale.US);
System.out.printf("%s: %s [%s<=>%s]%n", root.equalsIgnoreCase(us) ? "=" : " ", s, root, us);
}
}
}
$ ~/jdk-16.jdk/Contents/Home/bin/java -version
openjdk version "16-ea" 2021-03-16
OpenJDK Runtime Environment (build 16-ea+20-1092)
OpenJDK 64-Bit Server VM (build 16-ea+20-1092, mixed mode, sharing)
$ ~/jdk-16.jdk/Contents/Home/bin/java ISO3166.java BQ SZ
: BQ [Bonaire, Sint Eustatius and Saba<=>Caribbean Netherlands]
: SZ [Swaziland<=>Eswatini]
=========================
According to following URL, it seems country and region names are updated.
https://github.com/eggert/tz/compare/2012e..master#diff-e5919fb2a195c61372529aa1b85af27218bd019942ea35bd1faf1fb746209560
Also, see:
https://www.iso.org/obp/ui/#iso:code:3166:BQ (I don't know which one is valid)
https://www.iso.org/obp/ui/#iso:code:3166:SZ (Country name was changed)
- backported by
-
JDK-8261086 Update the root locale display names
- Resolved
-
JDK-8261165 Update the root locale display names
- Resolved
-
JDK-8261667 Update the root locale display names
- Resolved
-
JDK-8262135 Update the root locale display names
- Resolved
-
JDK-8264771 Update the root locale display names
- Resolved
- duplicates
-
JDK-8257762 The Locale.getDisplayCountry method returns incorrect name for country Czechia
- Closed
- relates to
-
JDK-8287868 Localized names update in COMPAT locale provider
- Resolved
-
JDK-8257762 The Locale.getDisplayCountry method returns incorrect name for country Czechia
- Closed
- links to
-
Commit openjdk/jdk15u-dev/de458f9f
-
Commit openjdk/jdk/ff5f2265
-
Review openjdk/jdk15u-dev/17
-
Review openjdk/jdk/786