lanoxx / tilda

A Gtk based drop down terminal for Linux and Unix
GNU General Public License v2.0
1.25k stars 165 forks source link

Incorrect multibyte string crop on backspace #517

Open d47081 opened 2 months ago

d47081 commented 2 months ago

I'm trying to send Cyrillic chars using netcat.

There is no problem with Latin chars, but when backspacing Cyrillic string, getting wrong encoding sent. In logs, it looks like \D0 and \D1 warnings that could not be converted to valid UTF-8 data.

No problem with other terminals. Suppose that's bug related to bytes length calculation.

Also found no option for VTE_ERASE_AUTO mode even defined

Debian 12 / i3, repository version, ASCII DEL in Compatibility settings

d47081 commented 2 months ago

Finally, found the answer to my issue here:

https://github.com/alacritty/alacritty/issues/3769 https://stackoverflow.com/questions/29913217/backspace-and-utf8-encoding-in-terminal

stty iutf8

It's possible to set UTF-8 by the app? I have just added this line to ~/.bashrc

p.s. maybe related with #494