From 6121c48e2dbce8b6a2a4d9a21d583b95b92ee8b0 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Mon, 11 Feb 2008 14:54:00 +0000 Subject: [PATCH] bash_profile: Don't force less to use latin1. This makes manpages come out really badly! --- bash_profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bash_profile b/bash_profile index 86e07b1..3cae439 100644 --- a/bash_profile +++ b/bash_profile @@ -146,7 +146,11 @@ export BECOME="--preserve-environment" export PAGER=`type -p less` METAMAIL_PAGER=`type -p less` export LESS="-iqgRh1FX" export LESSOPEN="|lesspipe.sh %s" -export LESSCHARSET=latin1 +case "$LC_CTYPE" in + *utf8*) LESSCHARSET=utf-8 ;; + *) LESSCHARSET=latin1 ;; +esac +export LESSCHARSET # export MAKEFLAGS="-j4" [ "$TMPDIR" ] || eval `tmpdir -b` export TMP=$TMPDIR -- 2.11.0