Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v6]

2024-10-23 Thread Naoto Sato
On Tue, 22 Oct 2024 18:55:29 GMT, Naoto Sato wrote: >> Changing the charset initialization of `java.io.Console` class, which is the >> basis of `java.io.IO`, so that it would behave the same way as `System.out` >> wrt encoding. This change will also have the capability to override the >> defau

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v6]

2024-10-23 Thread Roger Riggs
On Tue, 22 Oct 2024 18:55:29 GMT, Naoto Sato wrote: >> Changing the charset initialization of `java.io.Console` class, which is the >> basis of `java.io.IO`, so that it would behave the same way as `System.out` >> wrt encoding. This change will also have the capability to override the >> defau

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v6]

2024-10-22 Thread Naoto Sato
> Changing the charset initialization of `java.io.Console` class, which is the > basis of `java.io.IO`, so that it would behave the same way as `System.out` > wrt encoding. This change will also have the capability to override the > default charset used in `IO` methods with `stdout.encoding` sys

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-22 Thread Chen Liang
On Tue, 22 Oct 2024 16:53:45 GMT, Naoto Sato wrote: >> Hello Chen, the `{@systemProperty}` tag is expected to be used where the >> system property is being defined (the "Where should the tag be used?" >> section in >> https://mail.openjdk.org/pipermail/core-libs-dev/2018-November/056653.html).

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-22 Thread Naoto Sato
On Tue, 22 Oct 2024 16:26:29 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/java/lang/System.java line 150: >> >>> 148: * specified by the host environment or user. The encoding used >>> 149: * in the conversion from characters to bytes is equivalent to >>> 150: * stdout.

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v5]

2024-10-22 Thread Naoto Sato
> Changing the charset initialization of `java.io.Console` class, which is the > basis of `java.io.IO`, so that it would behave the same way as `System.out` > wrt encoding. This change will also have the capability to override the > default charset used in `IO` methods with `stdout.encoding` sys

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-22 Thread Jaikiran Pai
On Tue, 22 Oct 2024 15:44:41 GMT, Chen Liang wrote: >> Naoto Sato has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Reflects review comments > > src/java.base/share/classes/java/lang/System.java line 150: > >> 148: * specified by the

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-22 Thread Chen Liang
On Mon, 21 Oct 2024 17:49:33 GMT, Naoto Sato wrote: >> Changing the charset initialization of `java.io.Console` class, which is the >> basis of `java.io.IO`, so that it would behave the same way as `System.out` >> wrt encoding. This change will also have the capability to override the >> defau

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-22 Thread Roger Riggs
On Mon, 21 Oct 2024 17:49:33 GMT, Naoto Sato wrote: >> Changing the charset initialization of `java.io.Console` class, which is the >> basis of `java.io.IO`, so that it would behave the same way as `System.out` >> wrt encoding. This change will also have the capability to override the >> defau

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-21 Thread Alan Bateman
On Mon, 21 Oct 2024 17:49:33 GMT, Naoto Sato wrote: >> Changing the charset initialization of `java.io.Console` class, which is the >> basis of `java.io.IO`, so that it would behave the same way as `System.out` >> wrt encoding. This change will also have the capability to override the >> defau

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-21 Thread Iris Clark
On Mon, 21 Oct 2024 17:49:33 GMT, Naoto Sato wrote: >> Changing the charset initialization of `java.io.Console` class, which is the >> basis of `java.io.IO`, so that it would behave the same way as `System.out` >> wrt encoding. This change will also have the capability to override the >> defau

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v3]

2024-10-21 Thread Naoto Sato
On Sat, 19 Oct 2024 07:10:02 GMT, Alan Bateman 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: * Th

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v4]

2024-10-21 Thread Naoto Sato
> Changing the charset initialization of `java.io.Console` class, which is the > basis of `java.io.IO`, so that it would behave the same way as `System.out` > wrt encoding. This change will also have the capability to override the > default charset used in `IO` methods with `stdout.encoding` sys

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v3]

2024-10-19 Thread Alan Bateman
On Fri, 18 Oct 2024 21:43:49 GMT, Naoto Sato wrote: >> Changing the charset initialization of `java.io.Console` class, which is the >> basis of `java.io.IO`, so that it would behave the same way as `System.out` >> wrt encoding. This change will also have the capability to override the >> defau

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v3]

2024-10-18 Thread Naoto Sato
> Changing the charset initialization of `java.io.Console` class, which is the > basis of `java.io.IO`, so that it would behave the same way as `System.out` > wrt encoding. This change will also have the capability to override the > default charset used in `IO` methods with `stdout.encoding` sys

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v2]

2024-10-18 Thread Roger Riggs
On Thu, 17 Oct 2024 20:25:40 GMT, Naoto Sato wrote: >> Changing the charset initialization of `java.io.Console` class, which is the >> basis of `java.io.IO`, so that it would behave the same way as `System.out` >> wrt encoding. This change will also have the capability to override the >> defau

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v2]

2024-10-18 Thread Iris Clark
On Thu, 17 Oct 2024 20:25:40 GMT, Naoto Sato wrote: >> Changing the charset initialization of `java.io.Console` class, which is the >> basis of `java.io.IO`, so that it would behave the same way as `System.out` >> wrt encoding. This change will also have the capability to override the >> defau

Re: RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln [v2]

2024-10-17 Thread Naoto Sato
> Changing the charset initialization of `java.io.Console` class, which is the > basis of `java.io.IO`, so that it would behave the same way as `System.out` > wrt encoding. This change will also have the capability to override the > default charset used in `IO` methods with `stdout.encoding` sys

RFR: 8341975: Unable to set encoding for IO.println, IO.print and IO.readln

2024-10-17 Thread Naoto Sato
Changing the charset initialization of `java.io.Console` class, which is the basis of `java.io.IO`, so that it would behave the same way as `System.out` wrt encoding. This change will also have the capability to override the default charset used in `IO` methods with `stdout.encoding` system prop