Bug 243912 - system font needs to be restored upon shutdown
Summary: system font needs to be restored upon shutdown
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: initscripts
Version: 4.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
: ---
Assignee: initscripts Maintenance Team
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-12 17:55 UTC by Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail}
Modified: 2009-03-11 16:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-11 16:53:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
proposed fix (402 bytes, patch)
2007-06-12 17:55 UTC, Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail}
no flags Details | Diff

Description Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail} 2007-06-12 17:55:07 UTC
Description of problem:

Note: This is a reopen of bug 82258 for RHEL 4 (actually tested on CentOS 4, but
the initscripts package is quite the same -- the CentOS modifications are
minimal and should cause no difference in this regard). Much of the following
info is copied from the bug 82258 with minor updates.


Version-Release number of selected component (if applicable):

7.93.29.EL-1 (actually 7.93.29.EL-1.centos4)


How reproducible:

When shutting down the correct sysfont doesn't get set until portmapper is run. 
It would be nice if the sysfont could get set at the beginning of the shutdown.


Steps to Reproduce:

1. Use another language than English (I used cs_CZ.UTF-8 and cs_CZ.ISO-8859-2)
2. Shutdown
3. Check out the strange UTF8 characters

  
Actual results:

The localized strings containing natinal characters are displayed incorrectly.
(They get fixed when the `lang.sh' is run via the `portmapper' sysinit script as
already noted above.)

The console also seems to have lost its unicode mode as the multibyte characters
show as a single character per byte.


Expected results:

The national characters should show correctly since the very beginning of the
shutdown sequence.


Additional info:

Reply to bug 82258, comment #1: The fonts (including the Unicode enable state)
seem to get reset by the console reset upon logout (or perhaps by the console
reinitialization when the console gets respawned?) (Btw, I use no *user* logout
scripts and don't think there are any system-wide.)

When the shutdown is initiated from a logged-in session (using the `reboot'
command, for example), the messages are displayed correctly.

Regarding other comments in the bug 82258, I don't use xdm at the moment, so
can't tell anything about the influence of runlevel 5 on the console fonts. I
believe, this should be related, though.

A tested patch is already available and attached.

Comment 1 Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail} 2007-06-12 17:55:07 UTC
Created attachment 156813 [details]
proposed fix

Comment 2 Bill Nottingham 2007-06-12 18:16:30 UTC
How are you shutting down?

Comment 3 Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail} 2007-06-12 20:03:56 UTC
Good question (read: Forgot to mention this -- sorry!).

Simple Ctrl-Alt-Del does the trick. ;-)

Considering the specifics of the bug it should also "work" whe nthe shutdown is
initiated using other means than console (e. g. via SSH). But it's not so
typical to be able to watch the console display in this case.


Comment 4 Bill Nottingham 2007-06-12 20:20:01 UTC
That's from a virtual terminal, correct?

Comment 5 Jiri TRAVNICEK, alias JITR {temporarily not reading bugmail} 2007-06-12 20:47:52 UTC
Yeah.

But in order to prevent any misunderstanding: If you mean the same thing that's
also called virtual console, lives in `/dev/tty[0-9]' and displays through the
video card, then yes.


Comment 6 Bill Nottingham 2009-03-11 16:53:04 UTC
Apologies for the delay in response.

At this stage in the lifecycle of Red Hat Enterprise Linux 4, with the goal of mantaining stability and consistency for our custormers, we are only adding critical bugfixes and security fixes; this issue would not qualify under those criteria. Hence, marking this as WONTFIX for RHEL 4.

Again, apologies for the inconvenience.


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