JDK-8266774 : System property values for stdout/err on Windows UTF-8
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2021-05-07
  • Updated: 2022-09-12
  • Resolved: 2021-05-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17
11.0.17Fixed 17 b22Fixed
Related Reports
Relates :  
Relates :  
Description
While looking into JDK-8266674, I noticed `sun.stdout/err.encoding` values set to `cp65001` on Windows (with `UTF-8` default setting). Although this won't affect Console.charset(), as it takes different code path, this should be fixed to be set to `UTF-8`.
Comments
Backport of JDK-8266774. Along with JDK-8238203, prerequisite for a backport of JDK-8272352 to allow java to correctly parse Chinese characters in file paths and string arguments passed to java.exe. tier1 tests pass (github actions)
18-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1233 Date: 2022-07-16 00:17:15 +0000
16-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1227 Date: 2022-07-14 19:11:25 +0000
14-07-2022

Changeset: c494efc5 Author: Naoto Sato <naoto@openjdk.org> Date: 2021-05-10 16:25:30 +0000 URL: https://git.openjdk.java.net/jdk/commit/c494efc5b5d9a142fceff600285fd4c8c883e795
10-05-2021