magiblot / turbo

An experimental text editor based on Scintilla and Turbo Vision.
Other
475 stars 35 forks source link

flag of Scotland displayed incorrectly in turbo #26

Open unxed opened 2 years ago

unxed commented 2 years ago

sample.txt

expected: 🏴󠁧󠁢󠁳󠁣󠁴󠁿 seen: 🏴

GNOME Terminal itself is able to render this symbol correctly

magiblot commented 2 years ago

As of now, a screen cell in Turbo Vision can only hold up to 15 bytes of text. The whole Scottish flag is 28 bytes long, so it doesn't fit. :/

unxed commented 2 years ago

I was just trying to figure out how much memory to allocate to store one cell in a similar situation. It looks like you need even more than 15 in some cases.