On Wed, 24 Jan 2024 09:20:41 +0000 Stuart Henderson <[email protected]> wrote:
> On 2024/01/23 23:12, Luiz de Milon wrote: > > When the following file is `cat`ed in tmux, the server > > crashes. This also messes up the rendering in weechat, so I > > believe the bug may be in ncurses rather than tmux. > > That seems likely - I can reproduce it in 7.4 but not -current (which > has newer curses). This is a tmux bug; nicm fixed it in tmux/screen-write.c r1.224 2023/10/30 "Do not allow UTF-8 characters that are too long, GitHub issue 3729." This fix is in -current but not 7.4. A simple reproducer is $ perl -CS -e 'print chr(0x1f1e6) x 6' or any utf-8 string of 6 characters from U+1F1E6 to U+1F1FF (regional indicator symbol letters A to Z). https://github.com/tmux/tmux/issues/3729
