Bug 76470 - setfont is unable to activate ACM when executed from startup scripts
Summary: setfont is unable to activate ACM when executed from startup scripts
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kbd
Version: 8.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Eido Inoue
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-10-22 06:11 UTC by Sinitsyn Valentine
Modified: 2008-05-01 15:38 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-02-07 20:02:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Sinitsyn Valentine 2002-10-22 06:11:26 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826

Description of problem:
setfont is unable to activate ACM when executed from startup scripts. This
affects output of the startup messages (like "Bringing up interface eth0") if
/etc/sysconfig/i18n sets LANG variable to anything except "en_XX"


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


How reproducible:
Always

Steps to Reproduce:
1. Edit /etc/sysconfig/i18n and set LANG to "ru_RU.koi8r" (or to any other
locale which uses non-latin symbols)
2. Restart your system
3. Look at the messages during reboot & startup processes
	

Actual Results:  Locale-specific characters are not printed

Expected Results:  Locale-specific characters are printed

Additional info:

The root of a problem is that sysfont.c uses 'printf("\033(K");' statement to
activate a console. Thus it writes control sequence to stdout, which is
redirected by rc.d scripts. The possible solution is to write control sequence
directly to the console (i.e. using something like 'write(console_fd,
"\033(K",3);'). A good example of this is consoletool's consolechar.c program.

Another (simplier) solution is to add 'echo -ne "\033(K" > /dev/console" command
to one of the scripts (rc.d or /sbin/setsysfont)

Comment 1 Sinitsyn Valentine 2002-10-22 06:16:20 UTC
Well, to be rigorous, this applies only to the locales which require ACM
(actually many of them require)

Comment 2 Eido Inoue 2003-02-07 20:02:04 UTC
this is not necessarily kbd and more of an initscripts (and other pkgs) problem,
but has been fixed in the latest betas and rawhide. I'm seeing koi8r on test
installs here.


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