On Tue, 13 Apr 2021 12:54:51 GMT, Ichiroh Takiguchi <itakigu...@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

Reply via email to