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-3101] [Foundation] crash on .trimmingCharacters(in:) #4507

Closed
swift-ci opened this issue Nov 1, 2016 · 2 comments
Closed

[SR-3101] [Foundation] crash on .trimmingCharacters(in:) #4507

swift-ci opened this issue Nov 1, 2016 · 2 comments

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Nov 1, 2016

Previous ID SR-3101
Radar None
Original Reporter naithar (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

Ubuntu 14.04

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, Linux
Assignee naithar (JIRA)
Priority Medium

md5: e8385049e4034b1234d770265e00d669

Issue Description:

On Linux when using `.trimmingCharacters(in: )` on a string that starts or ends with emoji symbol the application crashes.

Example:

let emojiString: NSString = "  \u{1F62C}  "
let trimmedString = emojiString.trimmingCharacters(in: characterSet) //crashes here
@swift-ci
Copy link
Contributor Author

swift-ci commented Feb 5, 2017

Comment by Alexey Globchastyy (JIRA)

This bug is reproducible in swift 3.0.2

@swift-ci
Copy link
Contributor Author

swift-ci commented Feb 6, 2017

Comment by Sergey Minakov (JIRA)

It wasn't included in 3.0.2 release branch. Currently fixes is included in 3.1 release branch.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant