<i18n dev> RFR: 8274544: Langtools command's usage were garbled on Japanese Windows

Naoto Sato naoto at openjdk.java.net
Fri Oct 1 18:17:27 UTC 2021


On Thu, 30 Sep 2021 09:36:34 GMT, Ichiroh Takiguchi <itakiguchi at openjdk.org> wrote:

> JEP-400 (UTF-8 by Default) was eabled on JDK18-b13.
> After JDK18-b13, javac and some other langtool command's usage were garbled on Japanese Windows.
> These commands use PrintWriter instead of standard out/err with PrintStream.

The encoding used in `Log.java` should first check whether it is run within console or not. If `System.console()` returns the console, its `.charset()` should be used instead of `native.encoding` value.
As to the jshell issue, it is a different issue than javac, so I would expect it to be handled with a different issue.

-------------

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


More information about the i18n-dev mailing list