On Mon, Apr 26, 2010 at 05:46:11PM +0200, Werner Fink wrote: > > */ > > - tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY; > > + 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; > > > > > > The code in question now look like this: > > > > tty.c_iflag = IGNPAR|ICRNL|IXON|IXANY; > > #ifdef IUTF8 /* Not defined on FreeBSD */ > > tty.c_iflag |= IUTF8; > > #endif /* IUTF8 */ > > > > As far as I can tell, this do not work, as it will not pass on the > > existing setting of the IUTF8 bit, but instead always set it if IUTF8 > > is defined. > > > > Werner, you applied it. Do I misunderstand something? > > Oops ... yes indeed this may not work on a serial terminal.
I've fixed my mistake in HEAD. Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr