[SR-9935] Character.init(_: String)
should not store a UTF-16 NSString
#52341
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: 6e6a8c1764f01bc0ed1927e8f0900ef9
Issue Description:
The inlined initializer that creates a character from a single-character string will fail an internal invariant, if given a lazily-bridged NSString argument which is non-tagged (and non-ASCII).
https://forums.swift.org/t/efficiently-retrieving-utf8-from-a-character-in-a-string/19916/14
The text was updated successfully, but these errors were encountered: