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

CharacterSet union not working correctly on linux

    XMLWordPrintable

    Details

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

      Linux Ubuntu 16.04, swift-3.1-DEVELOPMENT-SNAPSHOT-2017-01-31-a-ubuntu16.04

      Description

      The following program prints "false" on ubuntu16.04 running in a docker image, but prints "true" on MacOS:

      import Foundation
      let separators = CharacterSet.punctuationCharacters.union(.whitespaces)
      print(separators.contains(" "))

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              tedgoddard Ted Goddard
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: