From 0135e70d7b6b7d26f2bcd8b68a4aa29413ce0592 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 6 Jan 2006 21:44:55 +0000 Subject: don't run unicode_start for subshells (#176832) --- lang.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang.sh b/lang.sh index 4f9d2f5d..2bf16f35 100755 --- a/lang.sh +++ b/lang.sh @@ -61,7 +61,7 @@ if [ "$sourced" = 1 ]; then if [ -n "$LANG" ]; then case $LANG in *.utf8*|*.UTF-8*) - if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" ]; then + if [ "$TERM" = "linux" -a "`/sbin/consoletype`" = "vt" -a $SHLVL -eq 1 ]; then [ -x /bin/unicode_start ] && /sbin/consoletype fg && unicode_start $SYSFONT $SYSFONTACM fi ;; -- cgit v1.2.1