[Pkg-sysvinit-devel] Bug#547073: Bug#547073: sysvinit: init should not clear utf8 flag

Samuel Thibault sthibault at debian.org
Thu Sep 17 21:20:28 UTC 2009


Henrique de Moraes Holschuh, le Thu 17 Sep 2009 17:34:49 -0300, a écrit :
> On Thu, 17 Sep 2009, Samuel Thibault wrote:
> > init sets c_iflag from scratch. This however clears the IUTF8
> > flag that the kernel sets according to the vt.default_utf8 kernel
> > option, resulting to odd behavior of backspace applied to non-ascii
> > characters. Just like c_cflag flags, init should not clear it, see
> > attached patch.
> 
> Errr... did you attach the right patch? :-)

Oops, obviously no :)

Samuel
-------------- next part --------------
--- src/init.c.orig	2009-09-17 01:31:17.000000000 +0200
+++ src/init.c	2009-09-17 01:31:38.000000000 +0200
@@ -704,7 +704,7 @@
 	/*
 	 *	Set pre and post processing
 	 */
-	tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY;
+	tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY | (tty.c_iflag & IUTF8);
 	tty.c_oflag = OPOST|ONLCR;
 	tty.c_lflag = ISIG|ICANON|ECHO|ECHOCTL|ECHOPRT|ECHOKE;
 


More information about the Pkg-sysvinit-devel mailing list