RFR: 8264208: Console charset API [v4]

Alan Bateman alanb at openjdk.java.net
Tue Apr 13 13:07:11 UTC 2021


On Tue, 13 Apr 2021 12:54:51 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:

> 1. I think method name "charset()" is too short. It's not called frequently. This method name should explain functionality.
> 2. Sometimes stderr may be redirected to stdout by shell. Why do we need to set different encodings for these two (sun.stdout.encoding and sun.stderr.encoding) ?

Console's class description already covers this "If the virtual machine is started from an interactive command line without redirecting the standard input and output streams then ...". The existing reader and writer methods use the same charset.

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

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


More information about the security-dev mailing list