From 0b0e1928c01eb0a89e6d6dba9e51cc0df59c4277 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 30 Mar 2001 17:34:36 +0000 Subject: fix su errors don't turn locale settings of 'C' into en_US --- lang.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lang.sh b/lang.sh index e255968b..0a65fdc9 100755 --- a/lang.sh +++ b/lang.sh @@ -37,10 +37,8 @@ if [ "$sourced" = 1 ]; then if [ -n "$SYSFONTACM" ]; then case $SYSFONTACM in iso01*|iso02*|iso15*|koi*|latin2-ucw*) - if [ "$TERM" = "linux" ]; then - if ls -l /proc/$$/fd/0 2>/dev/null | grep -- '-> /dev/tty[0-9]*$' >/dev/null 2>&1; then - echo -n -e '\033(K' > /proc/$$/fd/0 - fi + if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then + echo -n -e '\033(K' 2>/dev/null > /proc/$$/fd/0 fi ;; esac -- cgit