Withdrawn: 8266013: Unexpected replacement character handling on stateful CharsetEncoder
6 Jul
2021
6 Jul
'21
8:48 p.m.
On Tue, 27 Apr 2021 16:49:08 GMT, Ichiroh Takiguchi <itakiguchi@openjdk.org> wrote:
When an invalid character is converted by getBytes() method, the character is converted to replacement byte data. Shift code (SO/SI) may not be added into right place by EBCDIC Mix charset. EBCDIC Mix charset encoder is stateful encoder. Shift code should be added by switching character set. On x-IBM1364, "\u3000\uD800" should be converted to "\x0E\x40\x40\x0F\x6F", but "\x0E\x40\x40\x6F\x0F" SI is not in right place.
Also ISO2022 related charsets use escape sequence to switch character set. But same kind of issue is there.
This pull request has been closed without being integrated. ------------- PR: https://git.openjdk.java.net/jdk/pull/3719
1708
Age (days ago)
1708
Last active (days ago)
0 comments
1 participants
participants (1)
-
duke