1 Purpose: Make sure the utf-8 flag is not cleared from the tty.
2 Authour: Samuel Thibault
4 Status: applied upstream
8 @@ -786,10 +786,11 @@ void console_stty(void)
10 * Set pre and post processing
12 - tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY;
13 + tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY
14 #ifdef IUTF8 /* Not defined on FreeBSD */
15 - tty.c_iflag |= IUTF8;
16 + | (tty.c_iflag & IUTF8)
19 tty.c_oflag = OPOST|ONLCR;
20 tty.c_lflag = ISIG|ICANON|ECHO|ECHOCTL|ECHOPRT|ECHOKE;