RFR: 8342936: Enhance java.io.IO with parameter-less println() and readln() [v3]
Naoto Sato
naoto at openjdk.org
Tue Nov 5 18:14:29 UTC 2024
On Tue, 29 Oct 2024 08:13:22 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
>> This PR is simply adding parameter-less `java.io.IO.{println(),readln()}`, with the (hopefully) obvious semantics, plus the corresponding wiring to make those work. This may become part of JEP 495:
>> https://openjdk.org/jeps/495
>
> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
>
> Fixing test for Console.readln/readLine, ensuring the proper methods are called.
> > My question (please don't bash me, I am new): Any chance we can set the encoding of console? I tested on Java 23 (Windows) and the encoding is `windows-1252` so it will not display unicode characters correctly.
>
> I believe that after #21569, the `Console` encoding used by the JDK can be overwritten with `stdout.encoding`.
Yes, that is in place. Will be available in JDK24: https://bugs.openjdk.org/browse/JDK-8342208
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21693#issuecomment-2457858145
More information about the core-libs-dev
mailing list