From 3f4b154b7095a346bf32ac1e28bcf085f802f54d Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 22 May 2025 08:01:29 +0000 Subject: [PATCH] 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. --- tmux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux.h b/tmux.h index 7bcd4e2e..61de21ae 100644 --- a/tmux.h +++ b/tmux.h @@ -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 are stored. */ -#define UTF8_SIZE 21 +#define UTF8_SIZE 32 struct utf8_data { u_char data[UTF8_SIZE];