tinyfugue icon indicating copy to clipboard operation
tinyfugue copied to clipboard

Issue with unicode and backspace

Open ashak opened this issue 13 years ago • 4 comments

Hi,

Another issue i've come across.

Image at: http://imgur.com/gN09q

The first time I typed '.bigg test' was what made the talker talk to myself.

The second time I typed '.bigg £test'

This caused some issues with the talker, but as you can see from the third line, my history suggests that my input contained an unprintable character. This suggests to me that backspace over unicode characters isn't quite working as expected? The character is being removed from the screen, but perhaps some of the bytes of the character still exist in the input?

Thanks

ashak avatar Jun 12 '12 13:06 ashak

Yeah, this problem exists, at least on linux.

olethrosdc avatar Oct 19 '16 12:10 olethrosdc

Not sure if either of you are still reading this, but I found a way to reliably cause this bug to crash TF either locally or remotely. There are three versions of TF with a UTF8 patch, and one of them is not vulnerable. Working to get them to submit a pull request as this is their upstream, and if not I'll handle it. The other unrelated TF branch I created a patch for based on the good TF and submitted a pull request yestrday.

warmstarter avatar Jun 22 '21 15:06 warmstarter

Backspace can send ^H or ^? and if you can configure your client to send ^H tinyfugue behaves much better.

warmstarter avatar Jun 22 '21 22:06 warmstarter

Just added some changes that might help somewhat with this. In addition, I've found configuring my terminal to send ^H instead of ^? fixes a fair amount of issues with non-ASCII characters.

The issue has to do with the fact that UTF8 characters can be made-up of multiple bytes. It's something where most computer programs and languages get something wrong with the implementation. Working on getting it as good as I can.

warmstarter avatar Jun 24 '21 18:06 warmstarter