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

Volkan Yazici vyazici at openjdk.org
Mon Jun 16 07:29:44 UTC 2025


On Fri, 30 May 2025 11:07:30 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-8357995 this PR is addressing is a sub-task of JDK-8356893 and is concerned with only areas related to core libraries.

This pull request has now been integrated.

Changeset: eacfcd86
Author:    Volkan Yazici <vyazici at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/eacfcd86d38f4acf0165275a42d246ba6c5fae56
Stats:     130 lines in 11 files changed: 33 ins; 28 del; 69 mod

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

Reviewed-by: naoto, cjplummer

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

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


More information about the core-libs-dev mailing list