chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
aa024d0
)
bash_profile: Set LESSCHARSET correctly.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 5 Apr 2009 17:02:20 +0000
(18:02 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 5 Apr 2009 17:02:20 +0000
(18:02 +0100)
Since we now set LANG rather than LC_CTYPE, the LESSCHARSET code ended
up looking at the wrong variable.
bash_profile
patch
|
blob
|
blame
|
history
diff --git
a/bash_profile
b/bash_profile
index 7488133bf3c291492e26904a9a197c5e2e8a7a53..d36c42d18844cfcd9be01de97ddc6c42a2072ce1 100644
(file)
--- 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