0edf416bea1a180e82a8f5f96444d74fabb5867f

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Temporarily delete over-engineered solution

Diff

 1diff --git a/lib/misc.zsh b/lib/misc.zsh
 2index 6987c099c88e13845ab2976c5721f0e30d117266..0b7cb26967437479cae98aae452985a9e9cb1c8e 100644
 3--- a/lib/misc.zsh
 4+++ b/lib/misc.zsh
 5@@ -16,14 +16,7 @@ alias please='sudo'
 6 ## more intelligent acking for ubuntu users
 7 alias afind='ack-grep -il'
 8 
 9-## how to interpret text characters
10-if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then # only define if undefined
11-	export LC_CTYPE=${LANG%%:*}                 # pick the first entry from LANG
12-	[[ -z "$LC_CTYPE" ]] && \
13-		export LC_CTYPE=`locale -a | grep en_US.utf8 | head -1`
14-	[[ -z "$LC_CTYPE" ]] && \
15-		export LC_CTYPE=`locale -a | grep en_US | head -1`
16-	[[ -z "$LC_CTYPE" ]] && \
17-		export LC_CTYPE=C                         # default to internal encoding.
18+# only define LC_CTYPE if undefined
19+if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
20+	export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
21 fi
22-