diff options
author | Jim Meyering <jim@meyering.net> | 2004-04-07 09:52:22 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-04-07 09:52:22 +0000 |
commit | 733e79ed1f4cc170018a57a01418d40be2f90590 (patch) | |
tree | b2aa63234b8dc7bb09ac815d325bad0de95ad8d9 /src | |
parent | ef1c6a32bfcb52ac20f97a5c6e180cfbd722c4d5 (diff) | |
download | coreutils-733e79ed1f4cc170018a57a01418d40be2f90590.tar.xz |
Add support for IUTF8 input flag.
Diffstat (limited to 'src')
-rw-r--r-- | src/stty.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stty.c b/src/stty.c index ee837c78f..846684b26 100644 --- a/src/stty.c +++ b/src/stty.c @@ -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 input characters are UTF-8 encoded\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\ |