Skip to content

Commit 9000280

Browse files
committed
Explicitly refer to stdout.encoding
1 parent 581bed8 commit 9000280

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/java.base/share/classes/java/io/Console.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,8 @@ public void flush() {
580580
* the {@code Console}.
581581
* <p>
582582
* The returned charset corresponds to the input and output source
583-
* (e.g., keyboard and/or display) specified by the host environment or user.
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}.
584585
* It may not necessarily be the same as the default charset returned from
585586
* {@link java.nio.charset.Charset#defaultCharset() Charset.defaultCharset()}.
586587
*

0 commit comments

Comments
 (0)