Create a variable, default_utf8, that defines the system-wide default UTF-8
setting. This variable can be altered via sysfs. If the variable is properly
set, this should mimimize breakage of UTF-8 encoded consoles when doing a
reset or echo -e '\033c' and of newly opened/allocated consoles.
This is based from patches by Jan Engelhardt and Paul LeoNerd Evans.
Signed-off-by: Antonino Daplas <adaplas@xxxxxxxxx>
---
I think you're missing the whole point of console reset. Its purpose is to force the console into a known-good state. The fewer pieces of state it leaves unset, the better. To some degree it's less important what that state actually is.
Okay, you convinced me. Hopefully this is acceptable to all parties.
Andrew,
If everybody agrees, can you drop the previous patch I sent to you, and use
this instead?
Tony
+static int default_utf8;
+module_param(default_utf8, int, S_IRUGO | S_IWUSR);