Integrated: 8352906: stdout/err.encoding on Windows set by incorrect Win32 call

Naoto Sato naoto at openjdk.org
Fri Mar 28 16:29:31 UTC 2025


On Wed, 26 Mar 2025 18:57:37 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> Those system property values on Windows were derived from Windows' `GetConsoleCP()` call, but they should have been taken from `GetConsoleOutputCP()`. Replacing the incorrect call with the correct one won't change any behavior, as both calls return the same value by default (`GetOEMCP()`). However, it is still the right thing to do.

This pull request has now been integrated.

Changeset: c70ad6a0
Author:    Naoto Sato <naoto at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/c70ad6a053c7407b19060559d9f39b8b836a55a1
Stats:     22 lines in 1 file changed: 9 ins; 0 del; 13 mod

8352906: stdout/err.encoding on Windows set by incorrect Win32 call

Reviewed-by: bpb, alanb

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

PR: https://git.openjdk.org/jdk/pull/24263


More information about the core-libs-dev mailing list