LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   /sbin/setsysfont error thrown. (https://www.linuxquestions.org/questions/linux-general-1/sbin-setsysfont-error-thrown-39015/)

bobo_daclown 12-20-2002 11:26 PM

/sbin/setsysfont error thrown.
 
Okay, here's my error from /var/log/boot.log:

Dec 18 21:41:53 DaClown keytable: utf8: No such file or directory

Checked Google to no avail. Then, I traced the boot process. Checked keytable which runs loadkeys and setsysfont.

The variable $SYSFONT =
The variable $SYSFONTACM =
I checked set via bash and got nothing on these two???
If you see anything I can fix, please let me know. Thanks in advance.

/sbin/setsysfont is below. The line that throws an error is emboldened.

[marc@DaClown marc]$ cat /sbin/setsysfont
#!/bin/sh

PATH=/bin:/usr/bin

if [ -f /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
fi

case "$LANG" in
*.utf8|*.UTF-8)
exec unicode_start $SYSFONT $SYSFONTACM
;;
esac

if [ -x /bin/consolechars -o -x /usr/bin/consolechars ]; then
if [ -n "$SYSFONT" ]; then
ARGS=$SYSFONT
if [ -n "$UNIMAP" ]; then
ARGS="$ARGS --sfm $UNIMAP"
fi
if [ -n "$SYSFONTACM" ]; then
ARGS="$ARGS --acm $SYSFONTACM"
fi
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
fi
else
echo $"can't set font"
exit 1
fi

exit 0

SlickWilly 12-23-2002 09:34 AM

Oky. The problem is it's not finding any font files...

the error isn't the emoldened one, it's the one before it - where it says 'case $LANG in *.utf8 blah..

Check your LANG setting. You should see something like this :

# echo $LANG
en_US.UTF-8

depending on your location, of course.

After which you can check for your particular location's font tables.

Slick.

bobo_daclown 12-23-2002 12:46 PM

Okay, here's what I've done to correct the problem: Opened /etc/sysconfig/i18n (which is where it gets those variables):
Quote:

LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="LatArCyrHeb-16"
SYSFONTACM="utf8"
And replaced it with:
Quote:

LANG="en_US"
LC_ALL="en_US"
LINGUAS="en_US"
That seems to work. Then, I checked one of my other computers and replaced the script above with a copy from another RH8 machine:
Quote:

LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF.8"
SYSFONT="latarcyrheb-sun16"
No problems from a terminal window. The next time I drop out of X, I'll find out if it worked for sure.

nxny 12-23-2002 01:28 PM

I think this is an Anaconda(RH installer) issue with Psyche.

I had problems with this too, but in my man pages.

http://www.linuxquestions.org/questi...?postid=179443


All times are GMT -5. The time now is 12:21 AM.