Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

- no text -

0 views
Skip to first unread message

Rainer Weikusat

unread,
Jun 16, 2005, 4:07:00 AM6/16/05
to
EDDF:~ # cat /etc/profile.d/sh.utf8
#
# Avoid dumping UTF-8 on terminals that don't support
# it.
#
# "Somebody bring me the head Florian LaRoche"-edition
#
testutf8=`type -p testutf8`

test -n "$testutf8" && {
$testutf8

case $? in
1) # still being SuSE after selling out ot Novell, no docs for this
expr "$LANG" : ".*UTF-8$" >/dev/null 2>&1 && LANG="${LANG%.UTF-8}"
expr "$LC_CTYPE" : ".*UTF-8$" >/dev/null 2>&1 && LC_CTYPE="${LC_CTYPE%.UTF-8}"
;;

2)
# presumably (see above), this means 'terminal can do UTF-8'
# leave system settings alone in this case
;;
esac
}

0 new messages