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

Naoto Sato naoto at openjdk.org
Wed Mar 26 19:03:33 UTC 2025


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.

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

Commit messages:
 - initial commit

Changes: https://git.openjdk.org/jdk/pull/24263/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24263&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8352906
  Stats: 9 lines in 1 file changed: 4 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/24263.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24263/head:pull/24263

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


More information about the core-libs-dev mailing list