Integrated: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln

Naoto Sato naoto at openjdk.org
Wed Oct 23 17:47:13 UTC 2024


On Thu, 17 Oct 2024 20:01:33 GMT, Naoto Sato <naoto at openjdk.org> wrote:

> Changing the charset initialization of `java.io.Console` class, which is the basis of `java.io.IO`, so that it would behave the same way as `System.out` wrt encoding. This change will also have the capability to override the default charset used in `IO` methods with `stdout.encoding` system property. A corresponding CSR has also been drafted.

This pull request has now been integrated.

Changeset: 426da4bb
Author:    Naoto Sato <naoto at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/426da4bbad3a3eac15e8b17026ebad52b7c568ea
Stats:     113 lines in 5 files changed: 57 ins; 46 del; 10 mod

8341975: Unable to set encoding for IO.println, IO.print and IO.readln

Reviewed-by: rriggs, iris, alanb

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

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


More information about the core-libs-dev mailing list