Bump UTF8_SIZE to the maximum 32 because there are some crazy long UTF-8

sequences out there (GitHub issue 4506). This should not significantly
increase typical memory consumption because we only store each Unicode
character once in the shared cache.
This commit is contained in:
nicm
2025-05-22 08:01:29 +00:00
parent 545832e9fa
commit 3f4b154b70

2
tmux.h
View File

@ -662,7 +662,7 @@ typedef u_int utf8_char;
* characters as well. It can't be more than 32 bytes without changes to how * characters as well. It can't be more than 32 bytes without changes to how
* characters are stored. * characters are stored.
*/ */
#define UTF8_SIZE 21 #define UTF8_SIZE 32
struct utf8_data { struct utf8_data {
u_char data[UTF8_SIZE]; u_char data[UTF8_SIZE];