]> git.baikalelectronics.ru Git - kernel.git/commit
vt: fix canonical input in UTF-8 mode
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 7 May 2008 03:42:37 +0000 (20:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 8 May 2008 17:46:56 +0000 (10:46 -0700)
commitc348a359f10cb1bf371f0b3dcadb85bf8347a72b
treede5c7edfd3ccc583e5f480588079f833d29f9a3c
parenta2961a643be4fe9c4d4733d3b88ae39939361dee
vt: fix canonical input in UTF-8 mode

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/vt.c