Package: sysvinit / 2.88dsf-41+deb7u1

63_init_keep_utf8_ttyflag.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Purpose: Make sure the utf-8 flag is not cleared from the tty.
Authour: Samuel Thibault
Fixes:   #547073
Status:  Not applied upstream.

Index: src/init.c
===================================================================
--- trunk.orig/src/init.c	(revision 1869)
+++ trunk/src/init.c	(working copy)
@@ -784,10 +784,11 @@
 	/*
 	 *	Set pre and post processing
 	 */
-	tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY;
+	tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY
 #ifdef IUTF8 /* Not defined on FreeBSD */
-	tty.c_iflag |= IUTF8;
+		      | (tty.c_iflag & IUTF8)
 #endif /* IUTF8 */
+		;
 	tty.c_oflag = OPOST|ONLCR;
 	tty.c_lflag = ISIG|ICANON|ECHO|ECHOCTL|ECHOPRT|ECHOKE;