-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b158
-
x86
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8175757 | 10 | Naoto Sato | P3 | Resolved | Fixed | b02 |
JDK-8183840 | 8u161 | Naoto Sato | P3 | Resolved | Fixed | b01 |
JDK-8177733 | 8u152 | Naoto Sato | P3 | Resolved | Fixed | b03 |
JDK-8192574 | emb-8u161 | Naoto Sato | P3 | Resolved | Fixed | b01 |
With Mac 10.12 there are some locale issues with Simplified and traditional chinese.
Locale.getDefault() returns zh-hans-us / zh-hant-us for the above languages
The above causes some issues when we format a date instance.
Date currentDate = new Date();
String date = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()).format(currentDate);
The above code throws an exception "ill-fomed language: zh-hans-us" for simplified chinese - Mac 10.12 and JDK9 b 155
These languages were earlier handled as zh_TW/zh_CN
Also if run as a standalone java class, DateFormat.MEDIUM does not show any Chinese characters, DateFormat.LONG shows Chinese characters.
Locale.getDefault() returns zh-hans-us / zh-hant-us for the above languages
The above causes some issues when we format a date instance.
Date currentDate = new Date();
String date = DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.getDefault()).format(currentDate);
The above code throws an exception "ill-fomed language: zh-hans-us" for simplified chinese - Mac 10.12 and JDK9 b 155
These languages were earlier handled as zh_TW/zh_CN
Also if run as a standalone java class, DateFormat.MEDIUM does not show any Chinese characters, DateFormat.LONG shows Chinese characters.
- backported by
-
JDK-8175757 Locale issues with Mac 10.12
- Resolved
-
JDK-8177733 Locale issues with Mac 10.12
- Resolved
-
JDK-8183840 Locale issues with Mac 10.12
- Resolved
-
JDK-8192574 Locale issues with Mac 10.12
- Resolved
- relates to
-
JDK-7131356 (props) "No Java runtime present, requesting install" when creating VM from JNI [macosx]
- Resolved
-
JDK-8160199 Language's script should be reflected in user.script on Mac OS X
- Closed
-
JDK-8174042 Incorrect expiration date for JDK 9 EA build 155
- Closed
(2 relates to)