On Thu, 29 Apr 2021 13:23:42 GMT, Alan Bateman <al...@openjdk.org> wrote:

>> `native.encoding` preserves the encoding that current 
>> `Charset.defaultCharset()` is returning, which is based on `file.encoding`. 
>> So I believe the current implementation is correct. If it is biased toward 
>> `sun.jnu.encoding`, it would be problematic especially on Windows where that 
>> represents `system locale`.
>
> Okay for now but the value of file.encoding will change to "UTF-8" so will be 
> different to native.encoding.

Yes. That will be covered by JEP400.

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

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

Reply via email to