RFR: 8276970: Default charset for PrintWriter that wraps PrintStream [v3]
Naoto Sato
naoto at openjdk.java.net
Tue Nov 16 21:52:39 UTC 2021
On Tue, 16 Nov 2021 21:09:08 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Fixing the default charset for PrintWriter/OutputStreamWriter that wraps a PrintStream to its charset. This issue was raised during the conversations in https://github.com/openjdk/jdk/pull/5771
>> A corresponding CSR has also been drafted: https://bugs.openjdk.java.net/browse/JDK-8277078
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>
> Refined PrintStream::charset()'s method description, and moved it down along with other instance methods.
BTW, I still observe on Windows (system locale=ja-JP):
D:\projects\jdk\git\jdk>.\build\windows-x64\jdk\bin\jshell -J-Duser.language=ja
| JShellへようこそ -- バージョン18-internal
| 概要については、次を入力してください: /help intro
jshell> System.out.println("\u3042")
縺・
This needs to be separately addressed in https://bugs.openjdk.java.net/browse/JDK-8274784
-------------
PR: https://git.openjdk.java.net/jdk/pull/6401
More information about the core-libs-dev
mailing list