mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 12:37:02 +00:00
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:
2
tmux.h
2
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 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];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user