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
--- 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;
 
_______________________________________________
Pkg-sysvinit-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-sysvinit-devel

Reply via email to