WINCON: Is not capable of displaying unicode above 0xFFFF
okibcn opened this issue · 2 comments
okibcn commented
WINCON is not capable of displaying unicode codepoints above 0xFFFF. It is caused by the assumption that a widechar for Windows32 API is like a unicode. But, the Win32 API wchar is a WORD, and requires two wchar units encoded in UTF-16 for the API to properly display it.
okibcn commented
I have created pull request 273 with commit to solve the issue.
Now it can display emojis too. This is Nano editor working in Windows Terminal using patched PDCursesMod: