You can read a bit more about it here: ftp://ftp.ilog.fr/pub/Users/haible/utf8/linux-2.3.12-tty.diff There's also some other patches in the same directory.
/Erik For inclusion in the development kernel: The patch below fixes the "cooked" mode editing behaviour of ttys in Unicode/UTF-8 mode. The line editor in n_tty.c up to now assumes that every byte >= 0x20 is a character and occupies one screen position. For ttys in UTF-8 mode, this is not true any more. The patch fixes the two following problems in line editing on UTF-8 ttys: ~ 1. When the user types BackSpace, a multi-byte character has to be ~ erased, not only a single byte. Also, in ECHOPRT mode, the entire ~ multi-byte character has to be echoed to the screen, not only one ~ byte. ~ 2. When the user types a Tab or backspaces over a Tab, the kernel ~ needs to have the proper notion of the column number of the cursor ~ (tty->column). For a multi-byte character, the column number increases ~ by 1, not by the number of bytes that make up the character. The program which sets up the tty (xterm, rlogind, telnetd etc.) has to tell the kernel that it the tty will be in UTF-8 mode. For this purpose, a new tty attribute is introduced, part of the "struct termio" structure. The patch has been tested with console and xterm in UTF-8 mode, directly and across rlogin and telnet. Bruno Thus spake Adeodato Sim� ([EMAIL PROTECTED]): > Hi, > > I'd just like to know if, and to which extent, the following excerpt > from Linux changelog 2.6.4-rc1 implies a step forward in sanitizing > UTF-8 input in the linux console: > > <[EMAIL PROTECTED]> > [PATCH] tty utf8 mode > > This sounds like a good moment to come with this patch. > > This is essentially a five-year-old patch by Bruno Haible. It > introduces utf8 mode, and the effect it has on erasing input characters. > > (Side note - without stty support, this is not very useful, but now > the infrastructure is in place) > > Thanks. > > -- > Adeodato Sim� (a.k.a. thibaut) > EM: asp16 [ykwim] alu.ua.es | IM: my_dato [jabber.org] | PK: DA6AE621 > > If you think nobody cares if you're alive, try missing a couple of car > payments. > -- Earl Wilson -- Erik Dal�n [EMAIL PROTECTED] http://www.jpl.se/~dalen/ -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
