In linux 2.6.5 (mainstream) and in kernel-feat-drivers-console-unicode, IUTF8 bit has been introduced to the terminal settigns. (It makes kernel line editing mode respect UTF-8 multibyte characters.) stty should be able to modify this bit (by iutf8 option). Both changes (to the kernel and to stty) were suggested by Bruno Haible: ftp://ftp.ilog.fr/pub/Users/haible/utf8/
Created attachment 395 [details] I modified the spec file like this. The problem is that the IUTF8 value should be defined in the kernel headers. But the default kernel headers might not define it. So, a solution is required that will use the "right" kernel headers (with IUTF8) when coreutils is built. Such right kernel headers are thos from 2.6.5 or patched.
Created attachment 396 [details] I modified the spec file like this. The patch to the source. The inclusion of the specific kernel headers is wrong.
I'm about to use the patch applied to coreutils cvs.
JFYI, the IUTF8 value is defined in fresh glibc headers.
Implemented in coreutils-5.2.1-alt4. Requires glibc headers from glibc snapshot 2004-03-30 or later.