Skip to content

Unable To Append Two Emoji Strings On macOS Ventura's SwiftΒ #63664

Open
@brianmichel

Description

@brianmichel

Description
Appending two emoji strings together crashes on macOS Ventura

Steps to reproduce

  1. Use macOS Ventura
  2. Run the sample package's tests or
  3. try to execute the code "β›“".appending("πŸ¦‘") in the Swift repl

Expected behavior
This code should run and execute fine producing a string that is equal to "β›“πŸ¦‘"

Actual behavior
This works correctly on macOS Monterey, but crashes on macOS Ventura with the message Swift/StringUTF16View.swift:144: Fatal error: String index is out of bounds

Environment

  • Swift compiler version info
    -- swift-driver version: 1.62.15 Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)
    -- Target: arm64-apple-macosx13.0
  • Xcode version info
    -- Xcode 14.2
    -- Build version 14C18
  • Deployment target: macOS 11

Sample Project
FuzzyMatchingPackage.zip

Metadata

Metadata

Assignees

Labels

FoundationStringArea β†’ standard library: The `String` typebugA deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwarerun-time crashBug β†’ crash: Swift code crashed during executionstandard libraryArea: Standard library umbrellaswift 5.7

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions