<i18n dev> RFR: 8363972: Loose matching of dash/minusSign in number parsing [v9]

Eirik Bjørsnøs eirbjo at openjdk.org
Wed Aug 6 19:52:15 UTC 2025


On Wed, 6 Aug 2025 19:02:52 GMT, Naoto Sato <naoto at openjdk.org> wrote:

>> Enabling lenient minus sign matching when parsing numbers. In some locales, e.g. Finnish, the default minus sign is the Unicode "Minus Sign" (U+2212), which is not the "Hyphen Minus" (U+002D) that users type in from keyboard. Thus the parsing of user input numbers may fail. This change utilizes CLDR's `parseLenient` element for minus signs and loosely matches them with the hyphen-minus so that user input numbers can parse. As this is a behavioral change, a corresponding CSR has been drafted.
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update make/jdk/src/classes/build/tools/cldrconverter/LDMLParseHandler.java
>   
>   Co-authored-by: Shaojin Wen <shaojin.wensj at alibaba-inc.com>

Nit: Maybe using «lenient» instead of «loose» in the JBS/PR title would provide a more precise, correct and searchable description of the issue.

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

PR Comment: https://git.openjdk.org/jdk/pull/26580#issuecomment-3161391423


More information about the i18n-dev mailing list