bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Support IUTF8 in stty


From: Andreas Schwab
Subject: Support IUTF8 in stty
Date: Fri, 02 Apr 2004 14:46:48 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux)

The Linux kernel now offers a tty input flag IUTF8 which tells the kernel
that input is encoded in UTF-8, for proper editing support in canonical
input mode.

Andreas.

2004-04-02  Andreas Schwab  <address@hidden>

        * src/stty.c: Add support for IUTF8 input flag.

Index: src/stty.c
===================================================================
RCS file: /cvsroot/coreutils/coreutils/src/stty.c,v
retrieving revision 1.123
diff -u -p -a -r1.123 stty.c
--- src/stty.c  22 Jan 2004 20:58:59 -0000      1.123
+++ src/stty.c  2 Apr 2004 12:41:43 -0000
@@ -232,6 +232,9 @@ static struct mode_info mode_info[] =
 #ifdef IMAXBEL
   {"imaxbel", input, SANE_SET | REV, IMAXBEL, 0},
 #endif
+#ifdef IUTF8
+  {"iutf8", input, SANE_UNSET | REV, IUTF8, 0},
+#endif
 
   {"opost", output, SANE_SET | REV, OPOST, 0},
 #ifdef OLCUC
@@ -581,6 +584,9 @@ Input settings:\n\
    [-]istrip     clear high (8th) bit of input characters\n\
 "), stdout);
       fputs (_("\
+ * [-]iutf8      assume UTF-8 encoding\n\
+"), stdout);
+      fputs (_("\
  * [-]iuclc      translate uppercase characters to lowercase\n\
  * [-]ixany      let any character restart output, not only start character\n\
    [-]ixoff      enable sending of start/stop characters\n\
@@ -682,7 +688,7 @@ Combination settings:\n\
    -raw          same as cooked\n\
 "), stdout);
       fputs (_("\
-   sane          same as cread -ignbrk brkint -inlcr -igncr icrnl\n\
+   sane          same as cread -ignbrk brkint -inlcr -igncr icrnl -iutf8\n\
                  -ixoff -iuclc -ixany imaxbel opost -olcuc -ocrnl onlcr\n\
                  -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0\n\
                  isig icanon iexten echo echoe echok -echonl -noflsh\n\

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]