Hi, From: Erik Dalen <[EMAIL PROTECTED]> Subject: Re: relevance of "[PATCH] tty utf8 mode" in linux-kernel 2.6.4-rc1 Date: Mon, 1 Mar 2004 11:35:08 +0100
> 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: Does it assume that a character (not a byte) occupies one column on screen? It is not true for combining characters (wcwidth = 0) and doublewidth characters (wcwidth = 2). I (and other east Asian people) would be glad if they are supported (or considered in the future plan). > 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. How about "locale mode" of xterm? (Please read explanation of "-lc" option in the manpage of xterm). --- Tomohiro KUBOTA <[EMAIL PROTECTED]> http://www.debian.or.jp/~kubota/ -- Linux-UTF8: i18n of Linux on all levels Archive: http://mail.nl.linux.org/linux-utf8/
