<i18n dev> Integrated: 8363972: Lenient parsing of minus sign pattern in DecimalFormat/CompactNumberFormat
Naoto Sato
naoto at openjdk.org
Tue Aug 26 21:52:48 UTC 2025
On Thu, 31 Jul 2025 18:41:47 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.
This pull request has now been integrated.
Changeset: 23670fd4
Author: Naoto Sato <naoto at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/23670fd41895ccc38931f836d218ff7392a6065a
Stats: 426 lines in 8 files changed: 388 ins; 20 del; 18 mod
8363972: Lenient parsing of minus sign pattern in DecimalFormat/CompactNumberFormat
Reviewed-by: jlu, rriggs
-------------
PR: https://git.openjdk.org/jdk/pull/26580
More information about the i18n-dev
mailing list