Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Fix crash caused by combining unicode characters #31

Merged
merged 6 commits into from
Sep 1, 2020

Conversation

liamnichols
Copy link
Owner

#29

Basically, when an item in the array of strings contains a combining character at the start that hasn't combined with anything, it'll combine into the proceeding Character once the string gets merged into the final output and this was throwing off the ranges that I'd been calculating.

This then uncovered a whole bunch of other issues that led me to give up on my optimistic task of parsing %@ style variables and instead revert back to the {0} style pattern in the Unicode CLDR data.

I then changed a bunch of logic to fix this (backed mostly by tests) however I'm not really finished here.. I want to rewrite all of this but need it working first to confirm its performance.

@liamnichols liamnichols merged commit a04014c into master Sep 1, 2020
@liamnichols liamnichols deleted the ln/rewrite-formatter branch September 1, 2020 08:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant