Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: cope with new GNU iconv



`iconv --list` no longer pipes out the informational header that this sed
command is meant to elide.  This will cause a mess on older glibc.

Index: Completion/Unix/Command/_iconv
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_iconv,v
retrieving revision 1.5
diff -u -r1.5 _iconv
--- Completion/Unix/Command/_iconv	3 Mar 2005 14:13:06 -0000	1.5
+++ Completion/Unix/Command/_iconv	28 Sep 2005 18:55:34 -0000
@@ -26,7 +26,7 @@
     else
       _wanted codesets expl 'code set' compadd "$@" \
 	  -M 'm:{a-zA-Z}={A-Za-z} r:|-=* r:|=*' \
-	  ${${${(f)"$(_call_program codesets iconv --list|sed -n '/^$/,$ p')"}## #}%//} && ret=0
+	  ${${${(f)"$(_call_program codesets iconv --list)"}## #}%//} && ret=0
     fi
   fi
 



Messages sorted by: Reverse Date, Date, Thread, Author