diff options
author | Robby Russell <robby@planetargon.com> | 2015-02-10 11:49:23 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2015-02-10 11:49:23 -0800 |
commit | 2f7691982630d070ec660a0ea810dd74c50702d9 (patch) | |
tree | 1b92ed122359fbc77e663d9338852e29d288476f /lib | |
parent | 8830f65c4dbb1d1727540c0d1f983237383884f0 (diff) | |
parent | 0edf416bea1a180e82a8f5f96444d74fabb5867f (diff) | |
download | zsh-2f7691982630d070ec660a0ea810dd74c50702d9.tar.gz zsh-2f7691982630d070ec660a0ea810dd74c50702d9.tar.bz2 zsh-2f7691982630d070ec660a0ea810dd74c50702d9.zip |
Merge pull request #3563 from mcornella/fix-unicode-locale
Fix Unicode problems by only setting LC_CTYPE if not set
Diffstat (limited to 'lib')
-rw-r--r-- | lib/misc.zsh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/misc.zsh b/lib/misc.zsh index ea8a05fcb..0b7cb2696 100644 --- a/lib/misc.zsh +++ b/lib/misc.zsh @@ -9,11 +9,14 @@ setopt long_list_jobs export PAGER="less" export LESS="-R" -export LC_CTYPE=$LANG - ## super user alias alias _='sudo' alias please='sudo' ## more intelligent acking for ubuntu users alias afind='ack-grep -il' + +# 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 |