summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Janke <janke@pobox.com>2015-02-14 20:30:03 -0500
committerAndrew Janke <janke@pobox.com>2015-02-14 20:30:03 -0500
commit3a18c33f17fb73ead87f3c532b3f5c21ea192e10 (patch)
treefe85eee6cbbbc19b99e4d9a87b179151cbafc274
parenta9e97e5d2da90cf3e2b4575888fe585972ebcc74 (diff)
downloadzsh-3a18c33f17fb73ead87f3c532b3f5c21ea192e10.tar.gz
zsh-3a18c33f17fb73ead87f3c532b3f5c21ea192e10.tar.bz2
zsh-3a18c33f17fb73ead87f3c532b3f5c21ea192e10.zip
In termsupport, use LC_CTYPE instead of LANG to enable byte-by-byte text processing. LANG doesn't seem to actually work.
-rw-r--r--lib/termsupport.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index da74dfdba..9ff8a811c 100644
--- a/lib/termsupport.zsh
+++ b/lib/termsupport.zsh
@@ -65,8 +65,8 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
# Percent-encode the pathname.
local URL_PATH=''
{
- # Use LANG=C to process text byte-by-byte.
- local i ch hexch LANG=C
+ # Use LC_CTYPE=C to process text byte-by-byte.
+ local i ch hexch LC_CTYPE=C
for ((i = 1; i <= ${#PWD}; ++i)); do
ch="$PWD[i]"
if [[ "$ch" =~ [/._~A-Za-z0-9-] ]]; then