From 1b50dff802c0aa187c8947af9a017495e98c097a Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 3 Mar 2005 14:13:03 +0000 Subject: 20921: using UCS-4BE instead of ISO-10646 to identify character encoding is more portable, find more encodings in iconv completion on Solaris 20924: make error message more specific --- Completion/Unix/Command/_iconv | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_iconv') diff --git a/Completion/Unix/Command/_iconv b/Completion/Unix/Command/_iconv index e1528aec5..92fa17e34 100644 --- a/Completion/Unix/Command/_iconv +++ b/Completion/Unix/Command/_iconv @@ -1,7 +1,8 @@ #compdef iconv -local expl curcontext="$curcontext" state line codeset ret=1 +local expl curcontext="$curcontext" state line ret=1 local LOCPATH="${LOCPATH:-/usr/lib/nls/loc}" +local -U codeset if _pick_variant gnu=GNU unix --version; then @@ -40,6 +41,7 @@ else if [[ $state = codeset ]]; then if [[ -f /usr/lib/iconv/iconv_data ]]; then # IRIX & Solaris codeset=( ${${(f)"$(