187cf07c9148d5d6dda9b8ac1b453bd6e39ea550

Author
Andrew Janke <janke@pobox.com>
Committer
Andrew Janke <janke@pobox.com>
Date

Message

For unspecified encodings, assume it's UTF-8 or compatible (e.g. ASCII) and muddle through without character encoding conversion.

Diff

 1diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
 2index 70b54301d29b30c862b3d7c0293754e59d1deabd..ef9f0e5f1f6050ab2a792ef5ad06e1ad74807842 100644
 3--- a/lib/termsupport.zsh
 4+++ b/lib/termsupport.zsh
 5@@ -69,7 +69,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
 6 
 7       # URLs must use UTF-8 encoding; convert if required
 8       local encoding=${LC_CTYPE/*./}
 9-      if [[ $encoding != UTF-8 ]]; then
10+      if [[ -n $encoding && $encoding != UTF-8 ]]; then
11         str=$(iconv -f $encoding -t UTF-8)
12         if [[ $? != 0 ]]; then
13           echo "Error converting string from $encoding to UTF-8" >&2