Repository navigation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix: read non-ASCII digits in NumericComparator #560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
fix: read non-ASCII digits in NumericComparator #560
Changes from all commits
c804253File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
NumericComparator kept only [0-9.-] before parsing, so decimal digits outside ASCII (Arabic-Indic, Persian, Devanagari, Thai, fullwidth, ...) were deleted rather than read. "١٢٥٠" never matched "1250", and "١٢٥٠.50" read as 0.50, which could match the wrong number. A string whose digits are all outside ASCII read as no number before, so the new reader returns a number only when the string holds one unambiguous number, and no number otherwise. It understands the Arabic separators, Indian grouping, and the currency, accounting and minus formats CLDR writes; separators are accepted only for scripts whose locales all use "." as the decimal point, and a word counts as a currency only when it is a CLDR currency joined to the number as CLDR joins it. A string with ASCII digits reads as before, except that a number whose digits switch script reads as no number, and that Unicode minus signs, fullwidth accounting parentheses and spaces around accounting parentheses now mark a negative the old reading missed, and a negative inside accounting parentheses ("(-1250)") is no longer negated twice. Fixes #559Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.