From e13758536dc7299a6fe9490b15427feb8f2e9c77 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 5 Apr 2009 18:02:20 +0100 Subject: [PATCH] bash_profile: Set LESSCHARSET correctly. Since we now set LANG rather than LC_CTYPE, the LESSCHARSET code ended up looking at the wrong variable. --- bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.11.0