aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-06-12 20:11:02 +0000
committerBill Nottingham <notting@redhat.com>2002-06-12 20:11:02 +0000
commited7c4a3d43087c4ff3e3a4db8c54458d52d8476b (patch)
treec3bafb2b14ee546adf128ca7da7eadfedf41f034
parent885552f95d8b1b138cf97bbf499a78801af3a676 (diff)
downloadinitscripts-ed7c4a3d43087c4ff3e3a4db8c54458d52d8476b.tar
initscripts-ed7c4a3d43087c4ff3e3a4db8c54458d52d8476b.tar.gz
initscripts-ed7c4a3d43087c4ff3e3a4db8c54458d52d8476b.tar.bz2
initscripts-ed7c4a3d43087c4ff3e3a4db8c54458d52d8476b.tar.xz
initscripts-ed7c4a3d43087c4ff3e3a4db8c54458d52d8476b.zip
fix UTF-8 checks
-rwxr-xr-xlang.csh3
-rwxr-xr-xlang.sh2
-rwxr-xr-xsetsysfont2
3 files changed, 4 insertions, 3 deletions
diff --git a/lang.csh b/lang.csh
index 999b5c04..48aec773 100755
--- a/lang.csh
+++ b/lang.csh
@@ -61,7 +61,8 @@ if ($sourced == 1) then
endif
if ($?LANG) then
switch ($LANG)
- case *.utf8;
+ case *.utf8:
+ case *.UTF-8:
if ( $?TERM ) then
if ( "$TERM" == "linux" ) then
if ( `/sbin/consoletype` == "vt" ) then
diff --git a/lang.sh b/lang.sh
index fae662e8..877997ef 100755
--- a/lang.sh
+++ b/lang.sh
@@ -64,7 +64,7 @@ if [ "$sourced" = 1 ]; then
fi
if [ -n "$LANG" ]; then
case $LANG in
- *.utf8)
+ *.utf8|*.UTF-8)
if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then
unicode_start
fi
diff --git a/setsysfont b/setsysfont
index 17b9655f..afa14a81 100755
--- a/setsysfont
+++ b/setsysfont
@@ -8,7 +8,7 @@ fi
if [ -n "$LANG" ]; then
case $LANG in
- *.utf8)
+ *.utf8|*.UTF-8)
if [ -n "$SYSFONT" ]; then
if [ -n "$SYSFONTACM" ]; then
unicode_start $SYSFONT $SYSFONTACM