Re: RFR: 8317742: ISO Standard Date Format implementation consistency on DateTimeFormatter and String.format [v5]

2023-11-07 Thread Naoto Sato
On Tue, 7 Nov 2023 15:15:19 GMT, Shaojin Wen wrote: >> Within java.util.Formatter, the year formatter supports only the range >> [0,]. >> Only ISO_STANDARD_DATE has a ISO 8601 format defined for numbers outside >> that range. >> The formatting in java.time is defined over the full range of

Re: RFR: 8317742: ISO Standard Date Format implementation consistency on DateTimeFormatter and String.format [v5]

2023-11-07 Thread Shaojin Wen
On Tue, 7 Nov 2023 15:04:16 GMT, Roger Riggs wrote: >> While it might be reasonable to localize using `getMinusSign()` this will >> introduce a new inconsistency with `DateTimeFormatter` (which *does not* >> localize minus signs in front of years): >> >> int minus = DecimalFormatSymbols.getIn

Re: RFR: 8317742: ISO Standard Date Format implementation consistency on DateTimeFormatter and String.format [v5]

2023-11-07 Thread Roger Riggs
On Tue, 7 Nov 2023 13:45:54 GMT, Claes Redestad wrote: >> test/jdk/java/util/Formatter/BasicDateTime.java line 473: >> >>> 471: "%tF", >>> 472: >>> DecimalFormatSymbols.getInstance(localeEuES).getMinusSign() + "2023-01-13", >>> 473: LocalDate.of(-

Re: RFR: 8317742: ISO Standard Date Format implementation consistency on DateTimeFormatter and String.format [v5]

2023-11-07 Thread Claes Redestad
On Tue, 7 Nov 2023 13:28:06 GMT, Naoto Sato wrote: >> Shaojin Wen has updated the pull request incrementally with one additional >> commit since the last revision: >> >> use DecimalFormatSymbols#getMinusSign > > test/jdk/java/util/Formatter/BasicDateTime.java line 473: > >> 471:

Re: RFR: 8317742: ISO Standard Date Format implementation consistency on DateTimeFormatter and String.format [v5]

2023-11-07 Thread Naoto Sato
On Tue, 7 Nov 2023 01:31:03 GMT, Shaojin Wen wrote: >> j.u.Formatter now prints "%tF" (iso standard date) and the result is >> incorrect when processing year < 0 or year > > > Shaojin Wen has updated the pull request incrementally with one additional > commit since the last revision: > >

Re: RFR: 8317742: ISO Standard Date Format implementation consistency on DateTimeFormatter and String.format [v5]

2023-11-06 Thread Shaojin Wen
> j.u.Formatter now prints "%tF" (iso standard date) and the result is > incorrect when processing year < 0 or year > Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision: use DecimalFormatSymbols#getMinusSign - Changes: