RFR: 8357995: Use "stdin.encoding" for reading System.in with InputStreamReader/Scanner [core]
Volkan Yazici
vyazici at openjdk.org
Fri May 30 14:01:55 UTC 2025
On Fri, 30 May 2025 13:44:08 GMT, Weijun Wang <weijun at openjdk.org> wrote:
> Have you thought about creating a helper method for this purpose even if it's internal? At least, for the tests you can create one in `/test/lib`.
Required changes are pretty minimal – passing `System.getProperty("stdin.encoding")` as an argument to the ctor. I doubt adding an extra layer of indirection (plus the need for changes in `@build` and `@library` tags) will worth it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25544#issuecomment-2922477202
More information about the nio-dev
mailing list