From: Samuel Thibault Date: Wed, 3 Aug 2011 23:11:02 +0000 (+0200) Subject: agetty: only enable F_UTF8 if kernel has already set IUTF8. X-Git-Tag: v2.20-rc2~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7478fce029ea438179a1437cf76784d67500e176;p=thirdparty%2Futil-linux.git agetty: only enable F_UTF8 if kernel has already set IUTF8. Signed-off-by: Samuel Thibault --- diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 203668eadf..1bbfd7def3 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -979,7 +979,8 @@ static void termio_init(struct options *op, struct termios *tp) #ifdef IUTF8 tp->c_iflag = tp->c_iflag & IUTF8; - op->flags |= F_UTF8; + if (tp->c_iflag & IUTF8) + op->flags |= F_UTF8; #else tp->c_iflag = 0; #endif