kruton / tinyfugue

Tinyfugue MUD client (tf) with UTF-8 patches for Unicode MUDs.
http://tinyfugue.sourceforge.net/
Other
36 stars 20 forks source link

History editing non-ASCII characters doesn't work #1

Open jberanek opened 13 years ago

jberanek commented 13 years ago

If I type anything non-ASCII (say '£££') and then press left and right cursor keys, the editing doesn't work correctly, and eventually I start getting weird errors[1] that suggest buffer overflows.

[1] % The key "shift_right" is undefined; you may use "/def key_shift_right =

" to define it. See "/help keys".
jberanek commented 13 years ago

OK, I take back the buffer overflows bit. I think that was just me whizzing around (with left and right), and then typing £. Some times I'd accidentally still be holding shift when I pressed right.

warmstarter commented 3 years ago

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.

It's not a buffer overflow, it relates to the fact that non-ASCII characters can be multiple different number of bytes for a single character.