From c9e58b8be0238be9617bd7727551e18276d9d62f Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Wed, 4 Sep 2019 15:59:29 +0200 Subject: [PATCH] Remove redaundant setting of LANG, etc. We already to this in .zshenv, don't have to do it again. More importantly, we do it *right* in .zshenv ... --- .zshrc | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/.zshrc b/.zshrc index dc5dd1e..a86ba07 100644 --- a/.zshrc +++ b/.zshrc @@ -127,40 +127,3 @@ fi # for new style completion: autoload -U compinit compinit - -utf=`locale -a | grep en_US.utf8` -if [ -n "$utf" ] -then - # this is a bit of a hack - - # locale -a advertises the locale as "en_US.utf8", - # but the glibc accepts both "en_US.utf8" and - # "en_US.UTF-8" and xterm recogizes only the latter. - # So we explicitely set the latter, even though that's - # not the canonical name and may break some day. - # - case "`uname -sr`" in - Linux*) - LANG=en_US.UTF-8 - ;; - HP-UX*) - # UTF-8 locale on HP-UX is broken - LANG=en_US.iso88591 - ;; - *) - LANG=en_US.utf8 - ;; - esac -else - # fall back to latin 1. - LANG=en_US.iso88591 -fi -export LANG -case "$LANG" in -*.iso88591) - export LESSCHARSET=latin1 - export NLS_LANG=american_america.WE8ISO8859P1 - ;; -*.UTF-8) - export NLS_LANG=american_america.UTF8 - ;; -esac