RFR: 8264208: Console charset API [v11]

Roger Riggs rriggs at openjdk.java.net
Thu Apr 22 16:32:31 UTC 2021

On Thu, 22 Apr 2021 16:11:16 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> Not always, for example, if stderr was redirected to a terminal but not stdin and stdout.
>> The istty check is only true if both stdin and stdout are ttys.
> Then `charset()` in the shared secret would return `null`. Would that suffice your case?

I read lines 575-587 as initializing CHARSET regardless of whether the Console was created.


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

More information about the core-libs-dev mailing list