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

[Foundation] crash on .trimmingCharacters(in:)

    XMLWordPrintable

    Details

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

      Ubuntu 14.04

      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
      

        Attachments

          Activity

            People

            Assignee:
            naithar Sergey Minakov
            Reporter:
            naithar Sergey Minakov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: