Open
Description
Description
Appending two emoji strings together crashes on macOS Ventura
Steps to reproduce
- Use macOS Ventura
- Run the sample package's tests or
- 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