* [PATCH] update _iconv (support Citrus version in macOS etc)
@ 2023-12-13 15:30 Jun. T
0 siblings, 0 replies; only message in thread
From: Jun. T @ 2023-12-13 15:30 UTC (permalink / raw)
To: zsh-workers
macOS was using iconv from GNU libiconv, but in Sonoma it uses
iconv from the Citrus Project. This iconv does not support
the option --version, but can list the available codesets by
the option -l. Current _iconv supports this iconv only in
FreeBSD. It seems DragonFly and NetBSD also use this iconv.
diff --git a/Completion/Unix/Command/_iconv b/Completion/Unix/Command/_iconv
index bf04acfe4..fba0b9afe 100644
--- a/Completion/Unix/Command/_iconv
+++ b/Completion/Unix/Command/_iconv
@@ -63,7 +63,7 @@ else
'1:file:_files' && return 0
if [[ $state = codeset ]]; then
- if [[ $OSTYPE = freebsd* ]]; then
+ if [[ $OSTYPE = (freebsd|dragonfly|netbsd|darwin)* ]]; then
codeset=( $(_call_program codesets $words[1] -l) )
elif [[ -f /usr/lib/iconv/iconv_data ]]; then # IRIX & Solaris
codeset=( ${${(f)"$(</usr/lib/iconv/iconv_data)"}%%[[:blank:]]*} )
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-13 15:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-13 15:30 [PATCH] update _iconv (support Citrus version in macOS etc) Jun. T
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).