On Tue, 22 Apr 2025 08:14:23 GMT, Alan Bateman <al...@openjdk.org> wrote:

>> Jan Lahoda has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Add clause about handling of malformed/unmappable bytes.
>
> src/java.base/share/classes/java/lang/IO.java line 41:
> 
>> 39:  * The {@link #readln()} and {@link #readln(String)} methods decode 
>> bytes read from
>> 40:  * {@code System.in} into characters. The charset used for decoding is 
>> specified by the
>> 41:  * {@link System#getProperties stdin.encoding} property. If this 
>> property is not present,
> 
> @stuart-marks Are you planning to propose/integrate pull/24738 in advance of 
> the JEP update? Asking because this paragraph will need to be adjusted if 
> pull/24738 doesn't go in first.

Depends on how close you think 24738 is to being ready. As it stands it seems 
ok; but I'm still looking at the potential impact on other part of the JDK. In 
particular are there other JDK APIs that should be adjusted to mention 
`stdin.encoding`?

As for the impact here, if 24738 doesn't go in first, then I'm not quite sure 
what this should say. I guess it could say "default charset" or something and 
then it could be amended with a bugfix later.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24438#discussion_r2054690796

Reply via email to