On Thu, 22 Apr 2021 16:03:12 GMT, Roger Riggs <rri...@openjdk.org> wrote:
>> Would the singleton `Console.cons` be instantiated in your use case? It is >> created only when isatty() (or Windows' equivalent) in the native code >> returns true. > > 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? ------------- PR: https://git.openjdk.java.net/jdk/pull/3419