Red Hat Bugzilla – Bug 167363
loadkeys in rc.sysinit is no longer non-UTF-8 safe
Last modified: 2014-03-16 22:55:43 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6
Description of problem:
If system is in non-UTF-8 mode, loadkey still uses "-u" to load keymap. This will cause that e.g. German umlauts are displayed as two chars.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. enable non-UTF-8 mode in /etc/sysconfig/i18n (e.g. LANG=en_US)
3. use a German keyboard and type a German umlaut on a console
Actual Results: Strange chars are displayed
Expected Results: Germans umlauts are displayed
loadkey call in rc.sysinit unconditionally uses "-u" for unicode setup:
loadkeys -u $KEYMAP < /dev/tty0 > /dev/tty0 2>/dev/null && \
success $"Loading default keymap" || failure $"Loading default keymap"
That was not a good idea to use "-u" without checking whether system language is UTF-8.
A temporary fix is to remove "-u" on non-UTF-8 systems.
*** Bug 160039 has been marked as a duplicate of this bug. ***
Fixed in 8.44-1, thanks!
initscripts-8.31.6-1 has been pushed for fc5, which should resolve this issue. If these problems are still present in this version, then please make note of it in this bug report.