diff options
author | Bill Nottingham <notting@redhat.com> | 2002-05-31 02:41:54 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-05-31 02:41:54 +0000 |
commit | d194a371c1b1e0cb72b9d6ebdb324000bfc0f645 (patch) | |
tree | ea5d87d29eb5ca6c6d3473ef37a0f799ed6ace07 | |
parent | c9ad1fdc669f055d5f31779068470bd33ce37199 (diff) | |
download | initscripts-d194a371c1b1e0cb72b9d6ebdb324000bfc0f645.tar initscripts-d194a371c1b1e0cb72b9d6ebdb324000bfc0f645.tar.gz initscripts-d194a371c1b1e0cb72b9d6ebdb324000bfc0f645.tar.bz2 initscripts-d194a371c1b1e0cb72b9d6ebdb324000bfc0f645.tar.xz initscripts-d194a371c1b1e0cb72b9d6ebdb324000bfc0f645.zip |
unicode fixes; call unicode_start when necessary
-rwxr-xr-x | lang.csh | 13 | ||||
-rwxr-xr-x | lang.sh | 9 | ||||
-rwxr-xr-x | setsysfont | 17 |
3 files changed, 39 insertions, 0 deletions
@@ -59,6 +59,19 @@ if ($sourced == 1) then breaksw endsw endif + if ($?LANG) then + switch ($LANG) + case *.utf8; + if ( $?TERM ) then + if ( "$TERM" == "linux" ) then + if ( `/sbin/consoletype` == "vt" ) then + unicode_start + endif + endif + endif + breaksw + endsw + endif unsetenv SYSFONTACM unsetenv SYSFONT endif @@ -62,6 +62,15 @@ if [ "$sourced" = 1 ]; then ;; esac fi + if [ -n "$LANG" ]; then + case $LANG in + *.utf8) + if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then + unicode_start + fi + ;; + esac + fi unset SYSFONTACM SYSFONT fi @@ -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 |