Change tty handling in init to make sure the UTF-8 flag is not cleared on boot. ...
authorPetter Reinholdtsen <pere@hungry.com>
Sat, 14 Nov 2009 21:28:32 +0000 (21:28 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Sat, 14 Nov 2009 21:28:32 +0000 (21:28 +0000)
git-svn-id: svn://svn.sv.gnu.org/sysvinit/sysvinit/trunk@12 456724a4-4300-0410-8514-c89748c515a2

doc/Changelog
src/init.c

index ddf1b6a21d188879461ee42b575fec57477a1437..f49049ff0f61ef543cc8f35a7c94072f1dcccea4 100644 (file)
@@ -8,6 +8,8 @@ sysvinit (2.88dsf) UNRELEASED; urgency=low
   * Fix minor bug in optimizing of argument parsing.  Based on
     report from jakemus on freshmeat.
   * Add casts to get rid of compiler warning about signed/unsigned issues.
+  * Change tty handling in init to make sure the UTF-8 flag is not cleared
+    on boot.  Patch from Samuel Thibault.
 
  -- Petter Reinholdtsen <pere@hungry.com>  Sun, 12 Jul 2009 19:58:10 +0200
 
index 74bccae67419a3625a288fdec006c330d6c2e5b4..81ecf4c6cdac6026067191bd09ccf246fc099633 100644 (file)
@@ -719,7 +719,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)
+#endif /* IUTF8 */
+            ;
        tty.c_oflag = OPOST|ONLCR;
        tty.c_lflag = ISIG|ICANON|ECHO|ECHOCTL|ECHOPRT|ECHOKE;