Re: [PATCH] vt: Do not clear UTF when resetting console

From: Antonino A. Daplas
Date: Mon Apr 02 2007 - 20:17:40 EST


On Mon, 2007-04-02 at 21:10 +0200, Jan Engelhardt wrote:
> On Apr 2 2007 22:13, Antonino A. Daplas wrote:
> >Resetting the console, either by ANSI escape sequences or by the reset utility,
> >will drop the console back to legacy (non-UTF-8) mode. Fix this by leaving the
> >field vc_data.vc_utf untouched in reset_terminal(). In addition, a global
> >variable (default_utf8) which defines system-wide UTF-8 setting is created.
> >This variable can be adjusted via sysfs.
> >
> >This is based from patches by Jan Engelhardt and Paul LeoNerd Evans.
> >
> >Signed-off-by: Antonino Daplas <adaplas@xxxxxxxxx>
>
> Signed-off-by: Jan Engelhardt <jengelh@xxxxxx>
>
>
> >---
> >
> > drivers/char/vt.c | 4 +++-
> > 1 files changed, 3 insertions(+), 1 deletions(-)
>
>
> BTW. Is it feasible to make utf8 the default (static int default_utf8 = 1)
> or is that likely to break some installs?

I guess it would, but most if not all major distribs are moving/have
moved to utf-8.

Tony


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/