ALT Linux Bugzilla
– Attachment 396 Details for
Bug 4031
new option for stty: iutf8
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
I modified the spec file like this.
coreutils-5.0-stty-utf8-mode.diff (text/plain), 1.92 KB, created by
Ivan Zakharyaschev
on 2004-04-25 18:23:36 MSD
(
hide
)
Description:
I modified the spec file like this.
Filename:
MIME Type:
Creator:
Ivan Zakharyaschev
Created:
2004-04-25 18:23:36 MSD
Size:
1.92 KB
patch
obsolete
>diff -dur coreutils-5.0.utf/doc/coreutils.texi coreutils-5.0/doc/coreutils.texi >--- coreutils-5.0.utf/doc/coreutils.texi 2004-03-20 07:21:25 +0600 >+++ coreutils-5.0/doc/coreutils.texi 2004-03-20 07:23:59 +0600 >@@ -9583,6 +9583,15 @@ > @cindex beeping at input buffer full > Enable beeping and not flushing input buffer if a character arrives > when the input buffer is full. Non-@acronym{POSIX}. May be negated. >+ >+@item iutf8 >+@opindex iutf8 >+@cindex UTF-8 input, process accordingly >+Behave according to the assumption that the input is in UTF-8, and thus >+some characters are represented by several bytes. This imposes more >+complexity on the processing of Backspace and Tab in the input. >+Non-@acronym{POSIX}. (Works for newer Linux kernels: 2.6.5 and other.) >+May be negated. > @end table > > >diff -dur coreutils-5.0.utf/src/stty.c coreutils-5.0/src/stty.c >--- coreutils-5.0.utf/src/stty.c 2002-12-18 14:53:47 +0600 >+++ coreutils-5.0/src/stty.c 2004-03-20 07:30:41 +0600 >@@ -39,6 +39,11 @@ > #if HAVE_TERMIOS_H > # include <termios.h> > #endif >+/* A hack before I find a better solution to make kernel's IUTF8 def visible */ >+/* we don't want two colliding struct termios definitions. */ >+#define termios HACK_HIDE_termios >+# include <linux-2.4.22-std-up/include/asm/termbits.h> >+#undef termios > #ifdef GWINSZ_IN_SYS_IOCTL > # include <sys/ioctl.h> > #endif >@@ -238,6 +240,9 @@ > #ifdef IMAXBEL > {"imaxbel", input, SANE_SET | REV, IMAXBEL, 0}, > #endif >+#ifdef IUTF8 >+ {"iutf8", input, REV, IUTF8, 0}, >+#endif > > {"opost", output, SANE_SET | REV, OPOST, 0}, > #ifdef OLCUC >@@ -591,6 +596,7 @@ > "), stdout); > fputs (_("\ > * [-]iuclc translate uppercase characters to lowercase\n\ >+ * [-]iutf8 assume input characters are UTF-8 encoded\n\ > * [-]ixany let any character restart output, not only start character\n\ > [-]ixoff enable sending of start/stop characters\n\ > [-]ixon enable XON/XOFF flow control\n\
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 4031
:
395
| 396