summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2015-02-09 18:57:23 +0100
committerMarc Cornellà <marc.cornella@live.com>2015-02-10 20:38:06 +0100
commit0edf416bea1a180e82a8f5f96444d74fabb5867f (patch)
tree1b92ed122359fbc77e663d9338852e29d288476f /lib
parent448e966129bb5c08c7b2da4636491f0f890cf0ab (diff)
downloadzsh-0edf416bea1a180e82a8f5f96444d74fabb5867f.tar.gz
zsh-0edf416bea1a180e82a8f5f96444d74fabb5867f.tar.bz2
zsh-0edf416bea1a180e82a8f5f96444d74fabb5867f.zip
Temporarily delete over-engineered solution
Diffstat (limited to 'lib')
-rw-r--r--lib/misc.zsh13
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/misc.zsh b/lib/misc.zsh
index 6987c099c..0b7cb2696 100644
--- a/lib/misc.zsh
+++ b/lib/misc.zsh
@@ -16,14 +16,7 @@ alias please='sudo'
## more intelligent acking for ubuntu users
alias afind='ack-grep -il'
-## how to interpret text characters
-if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then # only define if undefined
- export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
- [[ -z "$LC_CTYPE" ]] && \
- export LC_CTYPE=`locale -a | grep en_US.utf8 | head -1`
- [[ -z "$LC_CTYPE" ]] && \
- export LC_CTYPE=`locale -a | grep en_US | head -1`
- [[ -z "$LC_CTYPE" ]] && \
- export LC_CTYPE=C # default to internal encoding.
+# only define LC_CTYPE if undefined
+if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
+ export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
fi
-