Revert "internals: Support characters beyond the first unicode plane (WIP)"

This reverts commit d05c59f35b.
This commit is contained in:
Solomon Peachy 2025-08-20 16:09:49 -04:00
parent d05c59f35b
commit 84504c7471
44 changed files with 335 additions and 480 deletions

View file

@ -660,16 +660,16 @@ int usb_screen(void)
return 0;
}
ucschar_t *bidi_l2v(const unsigned char *str, int orientation)
unsigned short *bidi_l2v(const unsigned char *str, int orientation)
{
static ucschar_t utf_buf[SCROLL_LINE_SIZE];
ucschar_t *target;
static unsigned short utf16_buf[SCROLL_LINE_SIZE];
unsigned short *target;
(void)orientation;
target = utf_buf;
target = utf16_buf;
while (*str)
str = utf8decode(str, target++);
*target = 0;
return utf_buf;
return utf16_buf;
}