-
- Downloads
Don't assume that rangeOfCharacterFromSet:options: always returns a length of...
Don't assume that rangeOfCharacterFromSet:options: always returns a length of 1. This fixes a bug where copying text where a line ends in a surrogate pair fails because it creates an invalid UTF-16 string, chopping the surrogate pair in half. Issue 3544.