[Pkg-shadow-devel] Bug#547079: Bug#547079: login: Should set the iutf8 tty c_iflag if the locale is utf8
Samuel Thibault
sthibault at debian.org
Thu Sep 17 23:59:14 UTC 2009
Mike Frysinger, le Thu 17 Sep 2009 19:30:02 -0400, a écrit :
> > > login/pam are there to do authentication only, not screw with the
> > > terminal.
> >
> > Login already does screw with the terminal in setup_tty(),
>
> presumably enough to prevent echoing of the password, but that's about it (for
> obvious security reasons).
Have you looked at the code before saying that?
/*
* Add your favorite terminal modes here ...
*/
termio.c_lflag |= ISIG | ICANON | ECHO | ECHOE;
termio.c_iflag |= ICRNL;
etc...
> > and with pam they already screw with a lot of various things about the
> > session: sid, limits, initial environment variables (like MAIL_DIR), home
> > automount, ...
>
> any solution that requires pam is no solution at all. the things you mention
> here really are part of login configuring things, not pam.
Then be it login itself.
> i dont have a fedora box myself, but from talking to a friend, things
> "just work" in the default setup. or at least it defaults everything
> to unicode.
Did he check whether stty -a properly shows iutf8? Things work very
fine even without it, one of the very few effects of iutf8 left cleared
is the bug I mentioned in my report: canonical mode's treatment of
backspace. People rarely notice it.
Samuel
More information about the Pkg-shadow-devel
mailing list