Re: Allowing apps to force sun.jnu.encoding = "UTF-8" on Windows

2024-11-05 Thread Naoto Sato
Hi Fabian, On 11/5/24 12:52 AM, Fabian Meumertzheim wrote: On Mon, Nov 4, 2024 at 8:46 PM Naoto Sato wrote: I am afraid that the risk that would be involved in configuring sun.jnu.encoding exceeds the benefit it would bring, as the encoding is so baked in the basis of the Windows Java runtime.

Re: Allowing apps to force sun.jnu.encoding = "UTF-8" on Windows

2024-11-05 Thread Fabian Meumertzheim
On Mon, Nov 4, 2024 at 8:46 PM Naoto Sato wrote: > I am afraid that the risk that would be involved in configuring > sun.jnu.encoding exceeds the benefit it would bring, as the encoding is > so baked in the basis of the Windows Java runtime. Since Microsoft > itself now recommends users choose UTF

Re: Allowing apps to force sun.jnu.encoding = "UTF-8" on Windows

2024-11-04 Thread Naoto Sato
Hi Fabian, On 11/4/24 1:38 AM, Fabian Meumertzheim wrote: Would contributions in this area be welcome? If it is possible to get to a state where this assumption does hold via incremental, behavior preserving changes to the native Windows parts of the Java runtime, that would potentially allow t

Re: Allowing apps to force sun.jnu.encoding = "UTF-8" on Windows

2024-11-04 Thread Fabian Meumertzheim
On Thu, Oct 31, 2024 at 11:26 PM Naoto Sato wrote: > >> This has been discussed when we did JEP 400: UTF-8 by Default and > >> decided not to do it, mainly because it affects filename/path encoding. > >> Changing `sun.jnu.encoding` apart from Windows system encoding will make > >> apps not being a

Re: Allowing apps to force sun.jnu.encoding = "UTF-8" on Windows

2024-10-31 Thread Naoto Sato
(renamed the subject back to original) On 10/31/24 9:12 AM, Fabian Meumertzheim wrote: This has been discussed when we did JEP 400: UTF-8 by Default and decided not to do it, mainly because it affects filename/path encoding. Changing `sun.jnu.encoding` apart from Windows system encoding will mak

Re: Allowing apps to force sun.jnu.encoding = "UTF-8" on Windows

2024-10-30 Thread Naoto Sato
Hi, This has been discussed when we did JEP 400: UTF-8 by Default and decided not to do it, mainly because it affects filename/path encoding. Changing `sun.jnu.encoding` apart from Windows system encoding will make apps not being able to access those files/directories (e.g. home directory) if

Allowing apps to force sun.jnu.encoding = "UTF-8" on Windows

2024-10-30 Thread Fabian Meumertzheim
On Windows, java.exe determines the value of "sun.jnu.encoding" and thus the encoding of any command-line arguments, environment variables, file names etc. based on the process' active code page (using the GetACP() Windows API function). On a vanilla Windows machine, this is typically a legacy code