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

From: H. Peter Anvin
Date: Mon Apr 02 2007 - 13:36:13 EST


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.

If you're going to introduce a system-wide default, instead of issuing the appropriate escape code, then I would argue it should still be forced (to the default) when issuing a console reset.

-hpa
-
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/