From: Mark Wooding Date: Sun, 5 Apr 2009 17:02:20 +0000 (+0100) Subject: bash_profile: Set LESSCHARSET correctly. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/e13758536dc7299a6fe9490b15427feb8f2e9c77 bash_profile: Set LESSCHARSET correctly. Since we now set LANG rather than LC_CTYPE, the LESSCHARSET code ended up looking at the wrong variable. --- diff --git a/bash_profile b/bash_profile index 7488133..d36c42d 100644 --- a/bash_profile +++ b/bash_profile @@ -158,7 +158,7 @@ export BECOME="--preserve-environment" export PAGER=`type -p less` METAMAIL_PAGER=`type -p less` export LESS="-iqgRh1FX" export LESSOPEN="|lesspipe.sh %s" -case "$LC_CTYPE" in +case "${LC_CTYPE-$LANG}" in *utf8 | *utf-8 | *UTF8 | *UTF-8) LESSCHARSET=utf-8 ;; *) LESSCHARSET=latin1 ;; esac