vt: fix canonical input in UTF-8 mode
commit7075314222eeb1adb2a16dbab88c3534d72cc50b
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 8 May 2008 21:06:15 +0000 (8 21:06 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 15 May 2008 14:49:59 +0000 (15 07:49 -0700)
tree78544b5ab884dfe2afdeaff2e01daf7eb11cb175
parenta138a8e6172bc013d93348df5c5b9f79c0d021c0
vt: fix canonical input in UTF-8 mode

commit c1236d31a1b9fc018b85e15a3e58e3601ddc90ae upstream

For e.g.  proper TTY canonical support, IUTF8 termios flag has to be set as
appropriate.  Linux used to not care about setting that flag for VT TTYs.

This patch fixes that by activating it according to the current mode of the
VT, and sets the default value according to the vt.default_utf8 parameter.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: Willy Tarreau <w@1wt.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/vt.c