Skip to content

[SR-2413] String.characters not handling some unicode characters correctly #4339

Closed
@swift-ci

Description

@swift-ci
Previous ID SR-2413
Radar None
Original Reporter jayant (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Xcode Version 8.0 beta 6 (8S201h) with Swift 3.0

Additional Detail from JIRA
Votes 1
Component/s Foundation, Standard Library
Labels Bug
Assignee None
Priority Medium

md5: 2cb0836048dcca5c9085078157a3d62f

Issue Description:

{{let _str = "Good Coffee <emoji with skin tone here>"
for char in _str.characters {
print(char)
}

/*
This should print the emoji as is, but instead it displays the emoji and the skin tone separately.

G
o
o
d

C
o
f
f
e
e

<emoji - thumbs up>
<skin tone>
*/
}}

On a side note, could not post the issue with the emojis on JIRA 🙁

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions