[Pkg-shadow-devel] Bug#547079: Bug#547079: login: Should set the iutf8 tty c_iflag if the locale is utf8
Mike Frysinger
vapier at gentoo.org
Thu Sep 17 02:05:59 UTC 2009
On Wednesday 16 September 2009 20:25:57 Samuel Thibault wrote:
> ATM, if one runs cat from a VT with a UTF-8 locale, type a non-ascii
> character, backspace, enter, the first byte of the utf-8 encoding
> non-ascii will remain in the stream. This is because the iutf8 flag is
> not set. getty clears it because it is not supposed to know anything
> beyond ascii. login, however, is responsible for loading the initial
> environment through the pam_env.so PAM module, and then knows which
> locale is configured on the system. There should be a PAM module (could
> be named pam_tty for instance) which basically does
except that the locale is rarely configured through pam_env, and this doesnt
work with a non-pam environment. and throwing another pam module into the mix
sounds like throwing crap onto the pile rather than addressing it at the right
place.
this is why the `unicode_start` and `unicode_stop` programs exist -- for
people to dynamically change the console input mode. 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.
perhaps you meant to file a bug about agetty not preserving the IUTF8 flag.
certainly nothing needs to be changed in the shadow package.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20090916/dcd02750/attachment-0001.pgp>
More information about the Pkg-shadow-devel
mailing list