On Tue, 19 Oct 2021 01:26:35 GMT, Jonathan Gibbons <j...@openjdk.org> wrote:
>> Ichiroh Takiguchi has refreshed the contents of this pull request, and >> previous commits have been removed. The incremental views will show >> differences compared to the previous content of the PR. > > This is pretty ugly code to be replicating so many times. > > What if the tools have been run in an environment where `System.out` and > `System.err` have already been redirected in some manner, with > `System.setOut` or `System.setErr`? You should not assume that `System.out` > and `System.err` will always refer to the console. Hello @jonathan-gibbons . I tested -Xstdout option for javac command on Linux and Windows platform. Output file encoding was UTF-8. I assume it's expected result. ------------- PR: https://git.openjdk.java.net/jdk/pull/5771