-
Bug
-
Resolution: Fixed
-
P4
-
None
-
master
-
generic
-
windows
On Windows, `stdout/err.enoding` is derived from the value returned from the Win32 call `GetConsoleCP()` (https://github.com/openjdk/jdk/blob/c856b3425a70d2aecb6c5c44da36396a5d74b00d/src/java.base/windows/native/libjava/java_props_md.c#L139). The value from `GetConsoleCP()` is supposed to be used for translating input characters. For the output, which is the case for `stdout/err.encoding`, it should be derived from `GetConsoleOutputCP()`, although they seem to return the same value by default (GetOEMCP()).
cf. https://learn.microsoft.com/en-us/windows/console/console-code-pages
cf. https://learn.microsoft.com/en-us/windows/console/console-code-pages
- links to
-
Commit(master) openjdk/jdk/c70ad6a0
-
Review(master) openjdk/jdk/24263