Bug 23250 – Unicode regional indicators are not paired correctly

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2022-07-15T13:59:55Z
Last change time
2022-07-18T08:06:05Z
Keywords
pull
Assigned to
No Owner
Creator
Ate Eskola

Comments

Comment #0 by Ajieskola — 2022-07-15T13:59:55Z
If there are many flags side-by-side, they should count as a grapheme each. But regional indicators do not currently get paired like that. Due to that, "πŸ‡¬πŸ‡§πŸ‡­πŸ‡°πŸ‡ΈπŸ‡¬πŸ‡―πŸ‡ͺπŸ‡°πŸ‡Ύ".byGrapheme.walkLength returns 1 when it should return 5.
Comment #1 by dlang-bot — 2022-07-15T14:05:20Z
@dukc created dlang/phobos pull request #8510 "Fix issue 23250 - corrected reginal indicator pairing." fixing this issue: - Fix issue 23250 - corrected reginal indicator pairing. https://github.com/dlang/phobos/pull/8510
Comment #2 by dlang-bot — 2022-07-18T08:06:05Z
dlang/phobos pull request #8510 "Fix issue 23250 - corrected reginal indicator pairing." was merged into master: - 95d19d97acb8ba6e55d5047284e46ffb6f909f36 by Ate Eskola: Fix issue 23250 - corrected reginal indicator pairing. https://github.com/dlang/phobos/pull/8510