[Pkg-shadow-devel] Bug#547079: login: Should set the iutf8 tty c_iflag if the locale is utf8

Samuel Thibault sthibault at debian.org
Thu Sep 17 07:55:58 UTC 2009


Mike Frysinger, le Wed 16 Sep 2009 22:05:59 -0400, a écrit :
> this is why the `unicode_start` and `unicode_stop` programs exist -- for 
> people to dynamically change the console input mode.

Normal users shouldn't have to know they have to start it.

> and why the keyboard/console font init scripts exist -- to set the
> defaults. and why the kernel now defaults all consoles to iutf8 on by
> default.

Except that getty drops the flag.

> perhaps you meant to file a bug about agetty not preserving the IUTF8 flag.  

As I said in my bug report, getty has always been clearing all tty flags
to restart the termios settings from scratch.  We can try, but I fear
they won't accept it.

Also, think about a serial console. Should the kernel also default tty
parameters with iutf8 there?  It doesn't know how the terminal plugged
to it is configured.  Getty run on it doesn't know which locale will be
used so can't set it.  Only login has some chance to know which locale
is being configured on the system.

Samuel



More information about the Pkg-shadow-devel mailing list