On Thu, 6 Nov 2025 19:35:06 GMT, Naoto Sato <[email protected]> wrote:

> This is a leftover when we introduced "dayperiods" in the JDK 
> ([JDK-8247781](https://bugs.openjdk.org/browse/JDK-8247781)). The CLDR 
> Converter was modified to generate patterns for SimpleDateFormat for 
> dayperiods (simply replacing them with ampm), and the same processing should 
> have been applied to Host provider on mac, which also uses LDML patterns. As 
> in the bug report, macos recently started using dayperiods, thus the issue 
> was revealed. Regression test is not provided as it would require the macos's 
> default locale should be configured to zh_TW. I have manually confirmed that 
> the proposed fix would work for the problem case.

This pull request has now been integrated.

Changeset: d2571ea7
Author:    Naoto Sato <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/d2571ea76ae5a9ccb7053bfec24bf3aedd366084
Stats:     12 lines in 1 file changed: 11 ins; 0 del; 1 mod

8371339: Illegal pattern char 'B' with locale.providers as HOST on macOS for 
Taiwanese

Reviewed-by: jlu, rriggs

-------------

PR: https://git.openjdk.org/jdk/pull/28181

Reply via email to