Bug 88238 - "SYSFONT: undefined variable" error when logging in on console
"SYSFONT: undefined variable" error when logging in on console
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2003-04-07 23:06 EDT by David Baron
Modified: 2014-03-16 22:35 EDT (History)
1 user (show)

See Also:
Fixed In Version: 7.19-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-05-02 15:53:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Baron 2003-04-07 23:06:51 EDT
Description of problem:  When I log in on the console, I get the error "SYSFONT:
undefined variable", and my .cshrc and .login files aren't executed.

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

How reproducible:  I think reproducing this requires what I have in my
/etc/sysconfig/i18n (which I admit to editing by hand, although to what I think
may have been the default in a clean install of RedHat 8 or 9 rather than an
upgrade).  My /etc/sysconfig/i18n contains:

Steps to Reproduce:
1. Press Ctrl-Left Alt-F1 to get to virtual terminal 1.
2. Log in.
Actual results: Error message "SYSFONT: undefined variable", and .cshrc and
.login not executed.

Expected results: No error, .cshrc and .login executed.

Additional info:  The problem seems to be located in /etc/profile.d/lang.csh . 
I fixed it locally with the following change.  (I don't know what this script
was intended to do, so I have no idea if it's right.)

--- /etc/profile.d/lang.csh     2003-03-29 14:15:45.000000000 -0500
+++ /etc/profile.d/lang.csh     2003-04-07 22:56:55.000000000 -0400
@@ -74,10 +74,12 @@
                if ( $?TERM ) then
                    if ( "$TERM" == "linux" ) then
                        if ( `/sbin/consoletype` == "vt" ) then
-                           if ( $?SYSFONTACM ) then
-                               unicode_start $SYSFONT $SYSFONTACM
-                           else
-                               unicode_start $SYSFONT
+                           if ( $?SYSFONT ) then
+                               if ( $?SYSFONTACM ) then
+                                   unicode_start $SYSFONT $SYSFONTACM
+                               else
+                                   unicode_start $SYSFONT
+                               endif
Comment 1 Bill Nottingham 2003-05-02 15:53:36 EDT
Fixed in 7.19-1 or so.

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