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-3485] CharacterSet.isSuperset(of:) returns wrong result on Linux #3901

Closed
marcelofabri opened this issue Dec 25, 2016 · 3 comments
Closed

Comments

@marcelofabri
Copy link

Previous ID SR-3485
Radar None
Original Reporter @marcelofabri
Type Bug
Status Resolved
Resolution Done
Environment

Swift version 3.0.2 (swift-3.0.2-RELEASE)
Target: x86_64-unknown-linux-gnu

Additional Detail from JIRA
Votes 1
Component/s Foundation
Labels Bug, Linux
Assignee None
Priority Medium

md5: 387084979ef4588ed9c8922c2a6e94a7

Issue Description:

CharacterSet.isSuperset(of:) returns wrong result on Linux:

let nameCharacterSet = CharacterSet(charactersIn: "Foo_Bar")
// CharacterSet.alphanumerics.contains("_") returns false
// nameCharacterSet.contains("_") returns true
let superset = CharacterSet.alphanumerics.isSuperset(of: nameCharacterSet) // should be false, but returns true
@swift-ci
Copy link
Contributor

swift-ci commented Mar 2, 2017

Comment by sai Hema k (JIRA)

Able to see the behavior difference on Darwin and Linux

@marcelofabri
Copy link
Author

This is still an issue with the latest stable version:

Swift version 3.1.1 (swift-3.1.1-RELEASE)
Target: x86_64-unknown-linux-gnu

@marcelofabri
Copy link
Author

This seems fixed on Swift 4.

@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

2 participants