<i18n dev> RFR: 8363972: Lenient parsing of minus sign pattern in DecimalFormat/CompactNumberFormat [v10]

Justin Lu jlu at openjdk.org
Thu Aug 7 18:10:16 UTC 2025


On Wed, 6 Aug 2025 20:24:32 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:
> 
>   Added description in `parse()`

The current form looks good to me, thanks for all the changes. Approved CSR as well.

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

Marked as reviewed by jlu (Committer).

PR Review: https://git.openjdk.org/jdk/pull/26580#pullrequestreview-3098263842


More information about the i18n-dev mailing list