On Wed, 10 Nov 2021 20:00:39 GMT, Alan Bateman <al...@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. Yes, sorry for the confusion. ------------- PR: https://git.openjdk.java.net/jdk/pull/5771