]> git.pld-linux.org Git - packages/SysVinit.git/blob - 63_init_keep_utf8_ttyflag.patch
- updated to 3.04
[packages/SysVinit.git] / 63_init_keep_utf8_ttyflag.patch
1 Purpose: Make sure the utf-8 flag is not cleared from the tty.
2 Authour: Samuel Thibault
3 Fixes:   #547073
4 Status:  applied upstream
5
6 --- a/src/init.c
7 +++ b/src/init.c
8 @@ -786,10 +786,11 @@ void console_stty(void)
9         /*
10          *      Set pre and post processing
11          */
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)
17  #endif /* IUTF8 */
18 +               ;
19         tty.c_oflag = OPOST|ONLCR;
20         tty.c_lflag = ISIG|ICANON|ECHO|ECHOCTL|ECHOPRT|ECHOKE;
21  
This page took 0.042054 seconds and 3 git commands to generate.