[SR-5448] Creating a Character via ExpressibleByExtendedGraphemeClusterLiteral fails with complex emoji #48020
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Environment
Apple Swift version 4.0 (swiftlang-900.0.49.1 clang-900.0.29) (Xcode 9 beta 3).
Additional Detail from JIRA
md5: bc2370cb250cd6672de7818c125debc8
duplicates:
Issue Description:
Tested on Xcode 9 beta 3.
Creating a
Character
from a grapheme cluster literal fails when the literal contains a complex emoji, e.g. one with a skin tone. I tested this with:"\u{1F64D}\u{1F3FD}"
(WOMAN + skin tone modifier). Creating the value with:
works fine.
It's not just skin tones. The same error occurs when the emoji is a profession without a skin tone, e.g.:
(MALE PILOT) also fails with the same error.
The text was updated successfully, but these errors were encountered: