fix(ui): translate keyboard preview buffer through UTF-8 handler

KeyboardWidget printed the text preview directly via display.print()
without calling translateUTF8ToBlocks first. When a reply prefix
contained a UTF-8 sender name (e.g. Cyrillic), raw multi-byte sequences
reached the display driver on non-Lemon renders.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-05-24 15:28:10 +02:00
parent c375c4b217
commit 5fde79fae7

View File

@@ -93,8 +93,10 @@ struct KeyboardWidget {
} else {
linebuf[0] = '\0';
}
char linebuf_t[32];
display.translateUTF8ToBlocks(linebuf_t, linebuf, sizeof(linebuf_t));
display.setCursor(0, pl * lh);
display.print(linebuf);
display.print(linebuf_t);
}
display.fillRect(0, sep_y, display.width(), 1);