This patch enchances support of UTF-8 locale in our init scripts byt adding to more variables to rc.conf file. First of all, now consolefont always sends \033(K to all consoles which implies no-unicode. With this patch it will check for value of UTF8 var in rc.conf and if it is set to true - output \033%G instead. Second variable - KEYMAP_ENCODING - allow for any keymap layout to be used with UTF locale. The current situation is that is I set my keyboard to wotk in unicode mode I wont be able to use my standart russian keymaps as they were writen for KOI8-R. However it is possible to recode it by doing: dumpkeys -c koi8-r | loadkeys -u which is exactly what this patch does, using value for KEYMAP_ENCODING. Reproducible: Always Steps to Reproduce:
Created attachment 34320 [details, diff] Proposed patch (v0.1) This file will patch /etc/init.d/keymaps /etc/init.d/consolefont and /etc/init.d/rc.conf
*** This bug has been marked as a duplicate of 32111 ***