Bug 4031

Summary: new option for stty: iutf8
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: coreutilsAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P2 CC: glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   
URL: http://mail.gnu.org/archive/html/bug-coreutils/2004-04/msg00021.html
Attachments:
Description Flags
I modified the spec file like this.
none
I modified the spec file like this. none

Description Ivan Zakharyaschev 2004-04-25 18:16:06 MSD
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/
Comment 1 Ivan Zakharyaschev 2004-04-25 18:20:28 MSD
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.
Comment 2 Ivan Zakharyaschev 2004-04-25 18:23:36 MSD
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.
Comment 3 Dmitry V. Levin 2004-04-25 18:28:11 MSD
I'm about to use the patch applied to coreutils cvs.
Comment 4 Dmitry V. Levin 2004-04-25 20:03:40 MSD
JFYI, the IUTF8 value is defined in fresh glibc headers.
Comment 5 Dmitry V. Levin 2004-04-25 20:31:04 MSD
Implemented in coreutils-5.2.1-alt4.
Requires glibc headers from glibc snapshot 2004-03-30 or later.