Missing many locales support on AIX platform
Bhaktavatsal R Maram
bhamaram at in.ibm.com
Thu Apr 12 09:41:30 UTC 2018
Hi,
On AIX platforms, Java is not starting on many locales. Java initialization fails with java.lang.IllegalArgumentException
bash-4.4$ LANG=Ja_JP java -version
Error occurred during initialization of VM
java.lang.IllegalArgumentException: Null charset name
at java.nio.charset.Charset.lookup(java.base/Charset.java:455)
at java.nio.charset.Charset.defaultCharset(java.base/Charset.java:608)
at java.lang.StringCoding.decode(java.base/StringCoding.java:314)
at java.lang.String.<init>(java.base/String.java:591)
at java.lang.String.<init>(java.base/String.java:613)
at java.lang.System.initProperties(java.base/Native Method)
at java.lang.System.initPhase1(java.base/System.java:1908)
>From our analysis, following are locales that are impacted with this issue.
Ar_AA.IBM-1046
ar_AA.ISO8859-6
ca_ES.IBM-1252 at euro
Iw_IL.IBM-856
iw_IL.ISO8859-8
Et_EE.IBM-922 at euro
Ja_JP.IBM-932
Ja_JP.IBM-943
ja_JP.IBM-eucJP
ko_KR.IBM-eucKR
Lt_LT.IBM-921 at euro
th_TH.TIS-620
Uk_UA.IBM-1124
Vi_VN.IBM-1129
Zh_CN.GB18030
zh_CN.IBM-eucCN
Zh_HK.BIG5-HKSCS
Zh_TW.big5
The default charset for these locales are not available in the java.base module and hence java cannot be used with those locales. In the current fix, am fixing the issue for following locales.
Ja_JP.IBM-932
Ja_JP.IBM-943
ko_KR.IBM-eucKR
th_TH.TIS-620
Uk_UA.IBM-1124
Zh_CN.GB18030
Zh_HK.BIG5-HKSCS
Zh_TW.big5
I've attached fix with this mail. I will continue working on other locales and provide the fix. In the mean time, I kindly request you to open a bug and review the fix for the above locales.
Thanks,
Bhaktavatsal Reddy
More information about the core-libs-dev
mailing list