Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37593124
en ru br
ALT Linux repos
S:3.00-alt2

Group :: System/Configuration/Boot and Init
RPM: sysvinit

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: sysvinit-2.88-deb-init-keep-utf8-ttyflag.patch
Download


Purpose: Make sure the utf-8 flag is not cleared from the tty.
Authour: Samuel Thibault
Fixes:   #547073
Status:  Not applied upstream.
--- sysvinit/src/init.c
+++ sysvinit/src/init.c
@@ -784,10 +784,11 @@ void console_stty(void)
 	/*
 	 *	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;
 
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin