How to install `iconv` on AppVeyor?

Jan Pio's Avatar

Jan Pio

21 Aug, 2018 02:38 PM

My software under test uses the iconv command line tool to convert some strings.
Unfortunately iconv is not available on AppVeyor images by default.

How can I install it?

Here is a version that works on Windows:
http://gnuwin32.sourceforge.net/packages/libiconv.htm

Currently I have hacked together a workaround by abusing another package that "includes" iconv:
https://sourceforge.net/projects/gtk-win/
So I download an execute http://downloads.sourceforge.net/gtk-win/gtk2-runtime-2.24.10-2012-...
or when Chocolatey is not down/slow:

install:
  - cinst gtk-runtime
Although that currently works, it also installs a lot of unnecessary stuff. I would appreciate a better solution.
  1. Support Staff 1 Posted by Ilya Finkelshte... on 21 Aug, 2018 08:10 PM

    Ilya Finkelshteyn's Avatar

    This should work:

    install:
    - appveyor DownloadFile https://cfhcable.dl.sourceforge.net/project/gnuwin32/libiconv/1.9.2-1/libiconv-1.9.2-1.exe
    - libiconv-1.9.2-1.exe /SILENT /SUPPRESSMSGBOXES
    

    Explanation:

  2. 2 Posted by Jan Pio on 22 Aug, 2018 10:28 PM

    Jan Pio's Avatar

    Thanks, works as expected.

    Although I am using https://downloads.sourceforge.net/project/gnuwin32/libiconv/1.9.2-1... as the download URL as it is not pinned to a specific mirror but redirects to a real download anyway.

  3. Jan Pio closed this discussion on 22 Aug, 2018 10:28 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

16 Jul, 2019 04:51 AM
15 Jul, 2019 06:33 PM
15 Jul, 2019 06:09 PM
15 Jul, 2019 05:53 PM
15 Jul, 2019 05:46 PM
15 Jul, 2019 05:21 PM