d-widget-toolkit / dwt

A library for creating cross-platform GUI applications.
141 stars 33 forks source link

Error when trying to enter a 32-bit Emoji in a Text control that listen VerifyEvent. #106

Closed kntroh closed 2 years ago

kntroh commented 2 years ago

Error "surrogate UTF-16 high value past end of string" when trying to enter a 32-bit Emoji in a Text control that listen VerifyEvent. For Windows' convenience, processing is done in units of wchar, so dchar will be split into two incomplete wchars when processing VerifyEvent. Using to!string for incomplete characters will result in an error.

jacob-carlborg commented 2 years ago

Thanks.