On Thu, 22 Apr 2021 16:11:16 GMT, Naoto Sato <na...@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

Reply via email to