diff options
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r-- | term-utils/agetty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 203668ead..1bbfd7def 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 |