The patch titled
vt: do not clear UTF when resetting console
has been added to the -mm tree. Its filename is
vt-do-not-clear-utf-when-resetting-console.patch
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this
------------------------------------------------------
Subject: vt: do not clear UTF when resetting console
From: "Antonino A. Daplas" <[EMAIL PROTECTED]>
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]>
Cc: "H. Peter Anvin" <[EMAIL PROTECTED]>
Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
drivers/char/vt.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
diff -puN drivers/char/vt.c~vt-do-not-clear-utf-when-resetting-console
drivers/char/vt.c
--- a/drivers/char/vt.c~vt-do-not-clear-utf-when-resetting-console
+++ a/drivers/char/vt.c
@@ -157,6 +157,8 @@ static void blank_screen_t(unsigned long
static void set_palette(struct vc_data *vc);
static int printable; /* Is console ready for printing? */
+static int default_utf8;
+module_param(default_utf8, int, S_IRUGO | S_IWUSR);
/*
* ignore_poke: don't unblank the screen when things are typed. This is
@@ -1517,7 +1519,6 @@ static void reset_terminal(struct vc_dat
vc->vc_charset = 0;
vc->vc_need_wrap = 0;
vc->vc_report_mouse = 0;
- vc->vc_utf = 0;
vc->vc_utf_count = 0;
vc->vc_disp_ctrl = 0;
@@ -2615,6 +2616,7 @@ static void vc_init(struct vc_data *vc,
vc->vc_rows = rows;
vc->vc_size_row = cols << 1;
vc->vc_screenbuf_size = vc->vc_rows * vc->vc_size_row;
+ vc->vc_utf = default_utf8;
set_origin(vc);
vc->vc_pos = vc->vc_origin;
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
fbdev-add-ultrasharp-uxga-to-broken-monitor-database.patch
intelfb-fix-ring-space-calculation.patch
nvidiafb-bring-back-generic-ddc-reading.patch
fbdev-ignore-vesa-modes-if-framebuffer-is-disabled.patch
fbdev-fix-obvious-bug-in-show_pan.patch
neofb-fill-transp-msb_right-with-the-correct.patch
atyfb-kill-dead-code.patch
fbdev-mm-deferred-io-support.patch
fbdev-mm-deferred-io-support-fix.patch
fbdev-mm-deferred-io-support-fix-2.patch
fbdev-hecuba-framebuffer-driver.patch
fbdev-hecuba-framebuffer-driver-fix.patch
nvidiafb-fix-reversed-ddc-port.patch
vt-do-not-clear-utf-when-resetting-console.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html