You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
Our crash reports don't log the exact locale being used when formatting strings however I do know that it was in an Arabic speaking region but not completely sure if language is playing a part to this.
This part of the code in theory was working fine since there is test coverage but I guess the first place to start is by adding some more robust tests to see if the issue can be reproduced.
The text was updated successfully, but these errors were encountered:
I think its partially related to deserialising via JSONDecoder (NSJSONSerialization) since the strings are actually bridged from NSString and have some kind of different memory layout that messes with the ranges
Ok so the bottom line is that this issue crops up when there is a combining character in one of the strings.. If a lone combining character was placed at the start of a string then it can combine with whatever string it is joined with causing the range calculation to be off which then results in a crash 😕
Our crash reports don't log the exact locale being used when formatting strings however I do know that it was in an Arabic speaking region but not completely sure if language is playing a part to this.
This part of the code in theory was working fine since there is test coverage but I guess the first place to start is by adding some more robust tests to see if the issue can be reproduced.
The text was updated successfully, but these errors were encountered: