-
Bug
-
Resolution: Fixed
-
P2
-
9, 11.0.5, 14
-
b14
-
windows
-
Verified
A existing charset mapping disappears when a new mapping is added by sun.nio.cs.map system property.
For example, when a new mapping is added with giving the system property,
-Dsun.nio.cs.map=Windows-31J/Shift_JIS,
the available charsets and these aliases are changed as below.
w/o -Dsun.nio.cs.map=Windows-31J/Shift_JIS
windows-31j -> [MS932, windows-932, csWindows31J]
Shift_JIS -> [shift_jis, x-sjis, sjis, shift-jis, ms_kanji, csShiftJIS]
w/ -Dsun.nio.cs.map=Windows-31J/Shift_JIS
windows-31j -> [MS932, x-sjis, shift_jis, shift-jis, ms_kanji, windows-932, csWindows31J, csShiftJIS]
The issue is reproducible in JDK 11 and 14, and not reproducible in the JDK 8u221.
It is a regression from JDK 9.
For example, when a new mapping is added with giving the system property,
-Dsun.nio.cs.map=Windows-31J/Shift_JIS,
the available charsets and these aliases are changed as below.
w/o -Dsun.nio.cs.map=Windows-31J/Shift_JIS
windows-31j -> [MS932, windows-932, csWindows31J]
Shift_JIS -> [shift_jis, x-sjis, sjis, shift-jis, ms_kanji, csShiftJIS]
w/ -Dsun.nio.cs.map=Windows-31J/Shift_JIS
windows-31j -> [MS932, x-sjis, shift_jis, shift-jis, ms_kanji, windows-932, csWindows31J, csShiftJIS]
The issue is reproducible in JDK 11 and 14, and not reproducible in the JDK 8u221.
It is a regression from JDK 9.
- csr for
-
JDK-8230405 Remove sun.nio.cs.map system property
-
- Closed
-
- relates to
-
JDK-8073152 Update Standard/ExtendedCharsets to work with module system
-
- Resolved
-