Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8337506

Disable "best-fit" mapping on Windows command line

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • tools
    • b10
    • generic
    • windows

      Java launcher on Windows uses GetCommandLineA() Win32 API to retrieve command arguments. If the arguments to the launcher include characters that cannot be mapped to the ANSI code page underneath, Windows uses "best-fit" approach if possible (https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-ucoderef/d1980631-6401-428e-a49d-d71394be7da8). This is problematic for some characters, such as quotation marks, as FULLWIDTH QUOTATION MARK (U+FF02) may be converted to double quotes in ascii (U+0022). This leads to an unexpected argument parsing. Disabling the "best-fit" mapping on those arguments is needed.

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: