Skip to content

Conversation

@abl
Copy link
Contributor

@abl abl commented Jan 14, 2017

… emoji on Linux

Foundation.NSMutableString.replaceCharacters assumed that the passed-in NSRange was character-based but it's UTF-16 based.

The fix was to use the UTF-16 view and then convert the indexes back to characters.


All credit to @allevato for coming up with the fix.

This also resolves [SR-3449].

… emoji on Linux

Foundation.NSMutableString.replaceCharacters assumed that the passed-in NSRange was character-based but it's UTF-16 based.

The fix was to use the UTF-16 view and then convert the indexes back to characters.
@parkera
Copy link
Contributor

parkera commented Jan 16, 2017

Thanks!

@parkera
Copy link
Contributor

parkera commented Jan 16, 2017

@swift-ci test and merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants