Markus Kuhn writes:
> Even though the tty cooked mode editor has to know how long a multi-byte
> character is (i.e., it has to be aware of UTF-8), it does *NOT* have to
> be aware in any way of character width or line length.
Markus, please look into the kernel tty patch mentioned in the HOWTO
and see why it is incomplete. It modifies in
/usr/src/linux/drivers/char/n_tty.c
a function 'opost' which also updates a field called 'tty->column'.
This field is used in two situations: when outputting a tab, and when
erasing a tab using a number of backspaces. (See function 'eraser'.)
These places must be modified to be width aware. You can test the
current patch without wcwidth and see it behave wrong when
double-width characters are used.
Bruno
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/lists/