Bug 86125 - setsysfont does not load console map
setsysfont does not load console map
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-03-14 10:40 EST by Péter, Soós
Modified: 2014-03-16 22:35 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-03-14 11:06:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Péter, Soós 2003-03-14 10:40:45 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.2) Gecko/20021206

Description of problem:
setsysfont (useing setfont) does not load the console map ($SYSFONTACM in
/etc/sysconfig/i18n).

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


How reproducible:
Always

Steps to Reproduce:
1.define a console map in /etc/sysconfig/i18n (SYSFONTACM)
2.run setsysfont utility
3.
    

Actual Results:  console map setting is discarded since there is no consolechars
utility

Expected Results:  console map is loaded

Additional info:
Here is my patch:

<-- cut here -->
--- setsysfont.old      2003-03-14 14:08:52.000000000 +0100
+++ setsysfont  2003-03-14 16:27:01.000000000 +0100
@@ -24,12 +24,15 @@
     consolechars -f $ARGS
   fi
 elif [ -x /bin/setfont ]; then
-  if [ -n "$SYSFONT" -a -n "$UNIMAP" ]; then
-    /bin/setfont $SYSFONT -u $UNIMAP
-  elif [ -n "$SYSFONT" ]; then
-    /bin/setfont $SYSFONT
-#  else
-#    /bin/setfont
+  if [ -n "$SYSFONT" ]; then
+    ARGS=$SYSFONT
+    if [ -n "$UNIMAP" ]; then
+       ARGS="$ARGS -u $UNIMAP"
+    fi
+    if [ -n "$SYSFONTACM" ]; then
+       ARGS="$ARGS -m $SYSFONTACM"
+    fi
+    /bin/setfont $ARGS
   fi
 else
   echo $"can't set font"
<-- cut here -->
Comment 1 Bill Nottingham 2003-03-14 11:06:00 EST
This was fixed in the Phoebe beta.

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