dart-pad icon indicating copy to clipboard operation
dart-pad copied to clipboard

Won't copy unicode combiners

Open jtmcdole opened this issue 1 year ago • 1 comments

What happened?

Paste in '🏳️‍🌈' highlight and copy just that flag Paste again. Receive 🏳️‍

Expected: 🏳️‍🌈

Noted: if you hit the right arrow again, the selector doesn't move and you can copy the flag.

jtmcdole avatar Aug 24 '23 22:08 jtmcdole

===[🏳️‍🌈]===
  length:    6
  codeunits: 6
  runes:     4
  utf16:     0xd83c 0xdff3 0xfe0f 0x200d 0xd83c 0xdf08
  utf8len:    14
  utf8 bytes: 0xf0 0x9f 0x8f 0xb3 0xef 0xb8 0x8f 0xe2 0x80 0x8d 0xf0 0x9f 0x8c 0x88
===[🏳️‍]===
  length:    4
  codeunits: 4
  runes:     3
  utf16:     0xd83c 0xdff3 0xfe0f 0x200d
  utf8len:    10
  utf8 bytes: 0xf0 0x9f 0x8f 0xb3 0xef 0xb8 0x8f 0xe2 0x80 0x8d

jtmcdole avatar Aug 24 '23 22:08 jtmcdole