Bug 167363 - loadkeys in rc.sysinit is no longer non-UTF-8 safe
loadkeys in rc.sysinit is no longer non-UTF-8 safe
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
: 160039 (view as bug list)
Depends On:
Blocks: FC5Target
  Show dependency treegraph
 
Reported: 2005-09-01 17:23 EDT by Peter Bieringer
Modified: 2014-03-16 22:55 EDT (History)
2 users (show)

See Also:
Fixed In Version: 8.44-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-10-05 12:48:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Peter Bieringer 2005-09-01 17:23:12 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):
initscripts-8.11.1-1

How reproducible:
Always

Steps to Reproduce:
1. enable non-UTF-8 mode in /etc/sysconfig/i18n (e.g. LANG=en_US)
2. reboot
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

Additional info:

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"
  echo

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.
Comment 1 Miloslav Trmač 2005-09-27 10:02:20 EDT
*** Bug 160039 has been marked as a duplicate of this bug. ***
Comment 2 Bill Nottingham 2006-10-05 12:48:32 EDT
Fixed in 8.44-1, thanks!
Comment 3 Fedora Update System 2006-10-19 17:15:49 EDT
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.
Comment 4 Fedora Update System 2006-10-26 13:44:51 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.