RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v3]
Naoto Sato
naoto at openjdk.org
Mon Oct 21 17:52:14 UTC 2024
On Sat, 19 Oct 2024 07:10:02 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Explicitly refer to `stdout.encoding`
>
> src/java.base/share/classes/java/io/Console.java line 584:
>
>> 582: * The returned charset corresponds to the input and output source
>> 583: * (e.g., keyboard and/or display) specified by the host environment or user,
>> 584: * which defaults to the one based on {@link System##stdout.encoding stdtout.encoding}.
>
> In System.getProperties, this is specified for as the encoding for System.out. That may need to be expanded to say Console too.
Added `System.console()` mention to `stdout.encoding`. Also removed `Console` mention from `System.out`, as it no longer provides extra meaning.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21569#discussion_r1809245944
More information about the core-libs-dev
mailing list