You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-3825 CharacterSet union not working correctly on linux
Issue Description:
import Foundation
let foo = "_"
let bar = CharacterSet.alphanumerics.union(CharacterSet(charactersIn: foo))
let baz = foo.rangeOfCharacter(from: bar.inverted)
let qux = (baz == nil)
print("baz: \(baz as Any)")
// On macOS this prints `true` and on Linux this prints `false`.
print("qux: \(qux)")
The text was updated successfully, but these errors were encountered:
You get different results on Linux because the union produces incorrect results (you'll notice bar.containsString(foo) returns false when it should return true).
Environment
macOS: 10.12
Xcode: 8.2
Linux: Ubuntu 16.04
swift-3.0.2-RELEASE
Additional Detail from JIRA
md5: 544128dd1cfc4c602f55a88818ed71d8
is duplicated by:
Issue Description:
The text was updated successfully, but these errors were encountered: