From d194a371c1b1e0cb72b9d6ebdb324000bfc0f645 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 31 May 2002 02:41:54 +0000 Subject: unicode fixes; call unicode_start when necessary --- setsysfont | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'setsysfont') diff --git a/setsysfont b/setsysfont index 8c524c88..17b9655f 100755 --- a/setsysfont +++ b/setsysfont @@ -6,6 +6,23 @@ if [ -f /etc/sysconfig/i18n ]; then . /etc/sysconfig/i18n fi +if [ -n "$LANG" ]; then + case $LANG in + *.utf8) + if [ -n "$SYSFONT" ]; then + if [ -n "$SYSFONTACM" ]; then + unicode_start $SYSFONT $SYSFONTACM + else + unicode_start $SYSFONT + fi + else + unicode_start + fi + exit $? + ;; + esac +fi + if [ -x /bin/consolechars -o -x /usr/bin/consolechars ]; then if [ -n "$SYSFONT" ]; then ARGS=$SYSFONT -- cgit v1.2.1