]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
agetty: only enable F_UTF8 if kernel has already set IUTF8.
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 3 Aug 2011 23:11:02 +0000 (01:11 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 8 Aug 2011 09:49:58 +0000 (11:49 +0200)
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
term-utils/agetty.c

index 203668eadfd03ea519734c0a9ecc6344877825bc..1bbfd7def3ee81ce8f4c69ce7d2e0eb382a350b9 100644 (file)
@@ -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