<i18n dev> RFR: 8274544: Langtools command's usage were garbled on Japanese Windows [v5]

Alan Bateman alanb at openjdk.java.net
Wed Nov 10 20:03:38 UTC 2021


On Wed, 10 Nov 2021 19:41:29 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

> 1. `PrintStream(OutputStream)` and `PrintStream(OutputStream, boolean)`  should be redefined so that they internally check if the stream arg is a PrintStream, in which case they use the encoding from the `PrinStream` instead of the default.

I think you mean the PrintWriter constructors here. Yes, there is merit in that. PrintStream is a bit unusual in that it's an OutputStream but it has a charset because it prints text output.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5771


More information about the i18n-dev mailing list