Commit 3a18c33f authored by Andrew Janke's avatar Andrew Janke
Browse files

In termsupport, use LC_CTYPE instead of LANG to enable byte-by-byte text...

In termsupport, use LC_CTYPE instead of LANG to enable byte-by-byte text processing. LANG doesn't seem to actually work.
parent a9e97e5d
...@@ -65,8 +65,8 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then ...@@ -65,8 +65,8 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
# Percent-encode the pathname. # Percent-encode the pathname.
local URL_PATH='' local URL_PATH=''
{ {
# Use LANG=C to process text byte-by-byte. # Use LC_CTYPE=C to process text byte-by-byte.
local i ch hexch LANG=C local i ch hexch LC_CTYPE=C
for ((i = 1; i <= ${#PWD}; ++i)); do for ((i = 1; i <= ${#PWD}; ++i)); do
ch="$PWD[i]" ch="$PWD[i]"
if [[ "$ch" =~ [/._~A-Za-z0-9-] ]]; then if [[ "$ch" =~ [/._~A-Za-z0-9-] ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment