Uploaded image for project: 'Swift'
  1. Swift
  2. SR-3485

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Foundation
    • Labels:
    • Environment:

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

      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
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            marcelofabri Marcelo Fabri
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: