Re: [EXTERNAL] Re: 4-letter patterns in Date Format Style no longer give full text style

2023-07-11 Thread Bruno Borges
t: July 10, 2023 11:51 PM To: Bruno Borges ; core-libs-dev@openjdk.org Cc: Naoto Sato Subject: Re: [EXTERNAL] Re: 4-letter patterns in Date Format Style no longer give full text style On 10/07/2023 21:09, Naoto Sato wrote: > : > >> >> And isn't this the case of a breaki

Re: [EXTERNAL] Re: 4-letter patterns in Date Format Style no longer give full text style

2023-07-10 Thread Alan Bateman
On 10/07/2023 21:09, Naoto Sato wrote: : And isn't this the case of a breaking change more than just updating the time database used by default in JDK? You could specify the system property `java.locale.providers` to COMPAT to use the JDK8 locales (although this has been deprecated in

Re: [EXTERNAL] Re: 4-letter patterns in Date Format Style no longer give full text style

2023-07-10 Thread Naoto Sato
rom:* Naoto Sato *Sent:* Monday, July 10, 2023 12:36:10 PM *To:* Bruno Borges ; core-libs-dev@openjdk.org *Subject:* [EXTERNAL] Re: 4-letter patterns in Date Format Style no longer give full text style Hi, In your test case, ``` new Locale("en_US"); ``` This will fall back to ROOT

Re: [EXTERNAL] Re: 4-letter patterns in Date Format Style no longer give full text style

2023-07-10 Thread Bruno Borges
Bruno Borges ; core-libs-dev@openjdk.org Subject: [EXTERNAL] Re: 4-letter patterns in Date Format Style no longer give full text style Hi, In your test case, ``` new Locale("en_US"); ``` This will fall back to ROOT locale texts with CLDR (default since JDK9) where it differs fro

Re: 4-letter patterns in Date Format Style no longer give full text style

2023-07-10 Thread Naoto Sato
Hi, In your test case, ``` new Locale("en_US"); ``` This will fall back to ROOT locale texts with CLDR (default since JDK9) where it differs from US English. Probably you may want to `new Locale("en", "US)` or preferably use `Locale.US` constant. Naoto On 7/10/23 12:08 PM, Bruno Borges wro

Re: 4-letter patterns in Date Format Style no longer give full text style

2023-07-10 Thread Joseph D. Darcy
Perhaps JEP 252 (https://openjdk.org/jeps/252) as mentioned in the JDK 9 release notes. -Joe On 7/10/2023 12:08 PM, Bruno Borges wrote: Hi all, Was there any change to Date Time Formatter API that made the "" and the "" (and other 4-letter patterns) change from Java 8 to 11+ ? In

4-letter patterns in Date Format Style no longer give full text style

2023-07-10 Thread Bruno Borges
Hi all, Was there any change to Date Time Formatter API that made the "" and the "" (and other 4-letter patterns) change from Java 8 to 11+ ? In Java 8, "" with locale en_US correctly gives the FULL day of week, e.g., "Monday". In Java 11 and 17 (two I've tested), the same input wi