RFR: 8337506: Disable "best-fit" mapping on Windows command line

Naoto Sato naoto at openjdk.org
Thu Aug 1 17:26:50 UTC 2024


Fixing the Java launcher's command line argument parsing issue on Windows. The Java launcher on Windows has been using `GetCommandLineA()` to obtain arguments, which by default does "best-fit" mapping when the arguments are converted to ANSI code page encoding. By disabling this "best-fit" mapping, the launcher's parsing works as expected. A corresponding CSR has been drafted for the behavioral change.

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

Commit messages:
 - initial commit

Changes: https://git.openjdk.org/jdk/pull/20428/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20428&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8337506
  Stats: 101 lines in 2 files changed: 99 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/20428.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20428/head:pull/20428

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


More information about the core-libs-dev mailing list