Re: Bug#547079: login: Should set the iutf8 tty c_iflag if the locale is utf8
Petter Reinholdtsen, le Tue 23 Mar 2010 15:33:22 +0100, a écrit :
> [Nicolas François]
> > As I have no clue about TTY setup, let see if I can get some other
> > opinions on debian-devel.
> > The question raised on http://bugs.debian.org/547079 is who shall be
> > responsible for setting up the user's tty (e.g. regarding UTF-8 handling).
> This sound related to <URL: http://bugs.debian.org/547073 >, fixed in
> sysvinit. in version 2.87dsf-7. Init now leave it to the kernel to
> set the utf-8 flag. Perhaps login should do the same?
See my concern in the bug report:
“My concern is that getty used to not keep any flag at all. Keeping
_some_ flags contrary to none is not just a "fix", it's a change of
behavior. Think for instance about a situation where a user clears
the tty's iutf8. The next user to log in will have a bogus terminal
since getty would leave it cleared and nothing else will set it. This
is the same for all the flags, getty could just keep the kernel's
current state, but it doesn't. [...] Letting a user break another user's
environment is wrong”