]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add support for IUTF8 input flag.
authorJim Meyering <jim@meyering.net>
Wed, 7 Apr 2004 09:52:22 +0000 (09:52 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 7 Apr 2004 09:52:22 +0000 (09:52 +0000)
src/stty.c

index ee837c78f5ae4b9e42c7323e2057bd0a660142fe..846684b2603b6a363258c7e814afe9e2a111fdf0 100644 (file)
@@ -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
@@ -579,6 +582,9 @@ Input settings:\n\
    [-]inlcr      translate newline to carriage return\n\
    [-]inpck      enable input parity checking\n\
    [-]istrip     clear high (8th) bit of input characters\n\
+"), stdout);
+      fputs (_("\
+ * [-]iutf8      assume input characters are UTF-8 encoded\n\
 "), stdout);
       fputs (_("\
  * [-]iuclc      translate uppercase characters to lowercase\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\