diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2023-12-16 23:22:58 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2023-12-16 23:22:58 +0900 |
commit | a528af5c57436c730144e35d97547163c57c8420 (patch) | |
tree | ebfbe113df7880fdd9dfd09a9c1954ee5f864aa6 /Completion/Unix | |
parent | 4c89849c98172c951a9def3690e8647dae76308f (diff) | |
download | zsh-a528af5c57436c730144e35d97547163c57c8420.tar.gz zsh-a528af5c57436c730144e35d97547163c57c8420.tar.xz zsh-a528af5c57436c730144e35d97547163c57c8420.zip |
52413: support Citrus version of iconv on macOS, DragonFly, NetBSD
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_iconv | 2 |
1 files changed, 1 insertions, 1 deletions
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:]]*} ) |