Skip to content

Commit c6ffcc8

Browse files
author
livecodeali
committed
[[ Bug 16717 ]] Handle variation selectors correctly wrt grapheme breaking
1 parent cb10a56 commit c6ffcc8

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/lcb/16717.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# LiveCode Builder Standard Library
2+
3+
# [16717] Handle unicode variation selector codepoints correctly

tests/lcb/stdlib/char.lcb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,4 +441,11 @@ public handler TestCodeOfChar()
441441
MCUnitTestHandlerThrows(TestCodeOfChar_Empty, "char->code (empty)")
442442
end handler
443443

444+
constant kVarSel is "a\u{fe0e}"
445+
446+
public handler TestVariationSelector()
447+
test "variation selector is part of grapheme" when \
448+
char 1 of kVarSel is kVarSel
449+
end handler
450+
444451
end module

0 commit comments

Comments
 (0)