* Correct fix for Debian bug #547073: use IUTF8 flag if defined
and if already set to make sure the utf-8 flag is not cleared from the tty. Patch from Samuel Thibault.
This commit is contained in:
parent
4d38df17a9
commit
d886c94c9f
@ -1,3 +1,8 @@
|
||||
[ Werner Fink ]
|
||||
* Correct fix for Debian bug #547073: use IUTF8 flag if defined
|
||||
and if already set to make sure the utf-8 flag is not cleared
|
||||
from the tty. Patch from Samuel Thibault.
|
||||
|
||||
sysvinit (2.88dsf) UNRELEASED; urgency=low
|
||||
|
||||
[ Petter Reinholdtsen ]
|
||||
|
@ -784,10 +784,11 @@ void console_stty(void)
|
||||
/*
|
||||
* Set pre and post processing
|
||||
*/
|
||||
tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY;
|
||||
#ifdef IUTF8 /* Not defined on FreeBSD */
|
||||
tty.c_iflag |= IUTF8;
|
||||
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;
|
||||
|
||||
|
@ -101,9 +101,6 @@ void fixtty(void)
|
||||
* the same result as `stty sane cr0 pass8'
|
||||
*/
|
||||
tty.c_iflag |= (BRKINT | ICRNL | IMAXBEL);
|
||||
#ifdef IUTF8 /* Not defined on FreeBSD */
|
||||
tty.c_iflag |= IUTF8;
|
||||
#endif /* IUTF8 */
|
||||
tty.c_iflag &= ~(IGNBRK | INLCR | IGNCR | IXOFF | IUCLC | IXANY | ISTRIP);
|
||||
tty.c_oflag |= (OPOST | ONLCR | NL0 | CR0 | TAB0 | BS0 | VT0 | FF0);
|
||||
tty.c_oflag &= ~(OLCUC | OCRNL | ONOCR | ONLRET | OFILL | OFDEL |\
|
||||
|
Loading…
Reference in New Issue
Block a user