diff options
| author | Andrew Janke <janke@pobox.com> | 2015-02-17 00:54:54 -0500 | 
|---|---|---|
| committer | Andrew Janke <janke@pobox.com> | 2015-02-17 00:54:54 -0500 | 
| commit | 187cf07c9148d5d6dda9b8ac1b453bd6e39ea550 (patch) | |
| tree | 04c4c3df69d6640e780dfd4cf168b4d58fba3c91 /lib | |
| parent | 702ff1ca9167455d2df385790e9023f758d5fc33 (diff) | |
| download | zsh-187cf07c9148d5d6dda9b8ac1b453bd6e39ea550.tar.gz zsh-187cf07c9148d5d6dda9b8ac1b453bd6e39ea550.tar.bz2 zsh-187cf07c9148d5d6dda9b8ac1b453bd6e39ea550.zip | |
For unspecified encodings, assume it's UTF-8 or compatible (e.g. ASCII) and muddle through without character encoding conversion.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/termsupport.zsh | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 70b54301d..ef9f0e5f1 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -69,7 +69,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then        # URLs must use UTF-8 encoding; convert if required        local encoding=${LC_CTYPE/*./} -      if [[ $encoding != UTF-8 ]]; then +      if [[ -n $encoding && $encoding != UTF-8 ]]; then          str=$(iconv -f $encoding -t UTF-8)          if [[ $? != 0 ]]; then            echo "Error converting string from $encoding to UTF-8" >&2 | 
