The feature of setting iutf8 was implemented in gnome-terminal 10 years ago and I've been happily using it ever since. There might be a bug of course, it would be nice to investigate further why it's not set for you. (At this moment I have no idea how it could be wrong for you.)
Your app is not the right place for such a workaround. There are thousands of utilities similar to yours (e.g. just type "cat" and you'll see the same problem with backspace), and dozens of ways a terminal can be configured incorrectly, it's not feasible for every utility to try to fix every possible broken setting. Any app running in a terminal should assume that the terminal is set up properly.
If you can't figure out what's wrong with your gnome-terminal, I recommend to place something like
if [ -t 0 -a "$(locale charmap)" = "UTF-8" ]; then stty iutf8; fi
in your .bashrc as a workaround, then you're done with this for all the applications, and don't pollute your utility with something that really doesn't belong there.
Hi Ivan,
The feature of setting iutf8 was implemented in gnome-terminal 10 years ago and I've been happily using it ever since. There might be a bug of course, it would be nice to investigate further why it's not set for you. (At this moment I have no idea how it could be wrong for you.)
Your app is not the right place for such a workaround. There are thousands of utilities similar to yours (e.g. just type "cat" and you'll see the same problem with backspace), and dozens of ways a terminal can be configured incorrectly, it's not feasible for every utility to try to fix every possible broken setting. Any app running in a terminal should assume that the terminal is set up properly.
If you can't figure out what's wrong with your gnome-terminal, I recommend to place something like
if [ -t 0 -a "$(locale charmap)" = "UTF-8" ]; then stty iutf8; fi
in your .bashrc as a workaround, then you're done with this for all the applications, and don't pollute your utility with something that really doesn't belong there.