Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Swahili compact patterns can include both signs, for example
elfu 0;elfu -0._get_compact_format()counts every zero in that string when computing the divisor, so 1000 becomeselfu 10and 100000 becomeselfu 100000. The same error affects compact currencies.Use the parsed pattern's minimum integer precision instead. That counts the positive numeric subpattern without counting the negative subpattern or literal zeros. Add 18 regression cases for both signs, three magnitudes, short/long decimals and compact EUR currency.
Validation: full suite on Python 3.10 and 3.14, Linux, CLDR 49: 8307 passed, 3 skipped, 2 xfailed on each. The 18 regressions fail before the fix. Ruff and diff checks pass. A separate 1164-case comparison across affected Swahili locales matched Node 22.23.5/ICU 78.3; Node uses CLDR 48.0.
This is a pre-existing divisor error, independent of the unscaled-rounding work in #1486. AI assistance was used for investigation, implementation and testing.