Integrated: 8357993: Use "stdin.encoding" for reading System.in with InputStreamReader/Scanner [hotspot]

Volkan Yazici vyazici at openjdk.org
Fri Jun 6 06:55:59 UTC 2025


On Fri, 30 May 2025 10:50:57 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:

> Passes the `Charset` read from the `stdin.encoding` system property while creating `InputStreamReader` or `Scanner` instances for `System.in`.
> 
> `stdin.encoding` is a recently added property for Java 25 in [JDK-8350703](https://bugs.openjdk.org/browse/JDK-8350703). Employing it throughout the entire code base is addressed by the parent ticket [JDK-8356893](https://bugs.openjdk.org/browse/JDK-8356893). JDK-8357993 this PR is addressing is a sub-task of JDK-8356893 and is concerned with only areas related to Hotspot.

This pull request has now been integrated.

Changeset: bb2611ad
Author:    Volkan Yazici <vyazici at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/bb2611ad43a2feaebc2246fdbac2179a40115d67
Stats:     13 lines in 4 files changed: 4 ins; 0 del; 9 mod

8357993: Use "stdin.encoding" for reading System.in with InputStreamReader/Scanner [hotspot]

Reviewed-by: cjplummer, sspitsyn

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

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


More information about the serviceability-dev mailing list