~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:
5157746
)
bash_profile: Don't set LESSCHARSET explicitly.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 24 Feb 2009 09:12:47 +0000
(09:12 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 24 Feb 2009 09:12:47 +0000
(09:12 +0000)
It does a good enough job by itself, it seems. And pattern matching
LC_CTYPE is something of a lost cause, given the number of possibilities.
bash_profile
patch
|
blob
|
blame
|
history
diff --git
a/bash_profile
b/bash_profile
index
a7c69f7
..
5b46a34
100644
(file)
--- a/
bash_profile
+++ b/
bash_profile
@@
-145,7
+145,7
@@
export PAGER=`type -p less` METAMAIL_PAGER=`type -p less`
export LESS="-iqgRh1FX"
export LESSOPEN="|lesspipe.sh %s"
case "$LC_CTYPE" in
- *utf8
*
) LESSCHARSET=utf-8 ;;
+ *utf8
| *utf-8 | *UTF8 | *UTF-8
) LESSCHARSET=utf-8 ;;
*) LESSCHARSET=latin1 ;;
esac
export LESSCHARSET