Karel Zak, le Tue 02 Aug 2011 14:22:42 +0200, a écrit : > On Tue, Aug 02, 2011 at 01:24:18PM +0200, Dr. Werner Fink wrote: > > agetty: Fix IUTF8 flag > > > > Preserve IUTF8 as set up by the kernel, which knows which consoles are > > in utf8 mode. > > > > Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> > > Signed-off-by: Werner Fink <werner@xxxxxxx> > > --- > > term-utils/agetty.c | 8 +++++++- > > 1 files changed, 7 insertions(+), 1 deletions(-) > > Applied, thanks. Oops, it is a bit too much. F_UTF8 should not be systematically enabled, see patch below. Samuel agetty: Only enable F_UTF8 if kernel has already set IUTF8. Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 203668e..6a77df4 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -979,7 +979,8 @@ static void termio_init(struct options *op, struct termios *tp) #ifdef IUTF8 tp->c_iflag = tp->c_iflag & IUTF8; - op->flags |= F_UTF8; + if (tp->c_iflag & IUTF8) + op->flags |= F_UTF8; #else tp->c_iflag = 0; #endif -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html