about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:52:58 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-04-02 11:52:58 +0000
commitf17c2a7c253801160002e456c76461c5b1c9cf4a (patch)
treee3d3ec52a7d0aaa49cb844b8444398f8e6f61dae /Completion/User
parent8bf88e211ed8c7b56983bdf17e99b6f52648a82a (diff)
downloadzsh-f17c2a7c253801160002e456c76461c5b1c9cf4a.tar.gz
zsh-f17c2a7c253801160002e456c76461c5b1c9cf4a.tar.xz
zsh-f17c2a7c253801160002e456c76461c5b1c9cf4a.zip
moved to Completion/Unix/Command/_iconv
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/_iconv54
1 files changed, 0 insertions, 54 deletions
diff --git a/Completion/User/_iconv b/Completion/User/_iconv
deleted file mode 100644
index 1e21b9655..000000000
--- a/Completion/User/_iconv
+++ /dev/null
@@ -1,54 +0,0 @@
-#compdef iconv
-
-local expl curcontext="$curcontext" state line codeset LOCPATH
-
-(( $+_is_gnu )) || typeset -gA _is_gnu
-if (( ! $+_is_gnu[$words[1]] )); then
-  if [[ $(_call version $words[1] --version </dev/null 2>/dev/null) = *GNU* ]]; 
-  then
-    _is_gnu[$words[1]]=yes
-  else
-    _is_gnu[$words[1]]=
-  fi
-fi
-
-if [[ -n "$_is_gnu[$words[1]]" ]]; then
-
-  _arguments -C \
-    {'(--from-code --list)-f','(-f --list)--from-code='}'[specify code set of input file]:code set:->codeset' \
-    {'(--to-code --list)-t','(-t --list)--to-code='}'[specify code set for output]:code set:->codeset' \
-    '--list[list all character code sets]' \
-    '--verbose[print progress information]' \
-    {'(--help)-\?','(-\?)--help'}'[display help information]' \
-    '--usage[display a short usage message]' \
-    {'(--version)-V','(-V)--version'}'[print program version]' \
-    '1:file:_files' && return 0
-    
-    if [[ $state = codeset ]]; then
-      _wanted codesets expl 'code set' \
-          compadd "$@" ${${(s:,:)$(iconv --list|sed -n '/^$/,$ p')}## #}
-    fi
-    
-else
-
-  _arguments -C \
-    '-f[specify code set of input file]:code set:->codeset' \
-    '-t[specify code set for output]:code set:->codeset' \
-    '1:file:_files' && return 0
-
-    if [[ $state = codeset ]]; then
-      if [[ -f /usr/lib/iconv/iconv_data ]]; then  # IRIX & Solaris
-	codeset=( ${${(f)"$(</usr/lib/iconv/iconv_data)"}%%[[:blank:]]*} )
-      elif [[ -d ${LOCPATH:=/usr/lib/nls/loc}/iconv ]]; then  # OSF
-	codeset=( $LOCPATH/iconv/*(N:t) )
-	codeset=( ${(j:_:s:_:)codeset} )
-      else
-	return 1
-      fi
-	
-      _wanted codesets expl 'code set' compadd "$@" -a codeset
-    fi
-
-fi    
-    
-