On Wed, 24 Nov 2021 04:08:43 GMT, Ichiroh Takiguchi <itakigu...@openjdk.org> wrote:
>> ncoding name COMPAT was defined for operating system encoding by JEP-400. >> https://openjdk.java.net/jeps/400 >> But java does not accept "-encoding COMPAT". > > Ichiroh Takiguchi has updated the pull request incrementally with one > additional commit since the last revision: > > 8277398: javac does not accept encoding name COMPAT As I explained before, output file encoding which is created by `-Xstdout` option is changed to native encoding instead of UTF-8 by `-J-Dfile.encoding=COMPAT`. In case of Linux ja_JP.eucjp locale, your explanation may be acceptable. But how about Windows platform ? How can user find encoding name without running java ? ------------- PR: https://git.openjdk.java.net/jdk/pull/6475