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 <[EMAIL PROTECTED]>
Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]> >--- > > 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? > static int printable; /* Is console ready for printing? */ >+static int default_utf8; >+module_param(default_utf8, int, S_IRUGO | S_IWUSR); It's probably just me, but I would have used an unsiged int. Jan -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

