Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-9935] Character.init(_: String) should not store a UTF-16 NSString #52341

Closed
benrimmington opened this issue Feb 15, 2019 · 1 comment
Closed
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@benrimmington
Copy link
Collaborator

Previous ID SR-9935
Radar None
Original Reporter @benrimmington
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee @milseman
Priority Medium

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

@milseman
Copy link
Mannequin

milseman mannequin commented Feb 16, 2019

#22663

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

1 participant