Skip to content

Instantly share code, notes, and snippets.

@killerswan
Last active December 9, 2015 15:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save killerswan/161642b735fbdd197645 to your computer and use it in GitHub Desktop.
Save killerswan/161642b735fbdd197645 to your computer and use it in GitHub Desktop.
eliminating warnings about iconv.dll in Git 1.9.4 on Windows...

In Git 1.9.4, and its included gpg, I see silly error messages which can be eliminated by downloading iconv.dll and putting it in Git\bin\ and Git\libexec\git-core\:

gpg: error loading `iconv.dll': The specified module could not be found.

First, get the GnuPG public keys themselves from here. I saved that block to a file, and can check fingerprints like so:

>gpg --with-fingerprint gnupg.key
gpg: error loading `iconv.dll': The specified module could not be found.

gpg: please see http://www.gnupg.org/download/iconv.html for more information
pub  1024D/57548DCD 1998-07-07 Werner Koch (gnupg sig) <dd9jn@gnu.org>
      Key fingerprint = 6BD9 050F D8FC 941B 4341  2DCC 68B7 AB89 5754 8DCD
pub  1024R/1CE0C630 2006-01-01 Werner Koch (dist sig) <dd9jn@gnu.org>
      Key fingerprint = 7B96 D396 E647 1601 754B  E4DB 53B6 20D0 1CE0 C630
pub  2048R/4F25E3B6 2011-01-12 Werner Koch (dist sig)
      Key fingerprint = D869 2123 C406 5DEA 5E0F  3AB5 249B 39D2 4F25 E3B6
sub  2048R/AC87C71A 2011-01-12 [expires: 2019-12-31]

And then imported:

>gpg --import gnupg.key

Second, now we can download libiconv-1.9.1.dll.zip (and the .sig file) from the GnuPG FTP server -- ftp://ftp.gnupg.org/gcrypt/binary/ -- and check the signature:

>gpg --verify libiconv-1.9.1.dll.zip.sig libiconv-1.9.1.dll.zip
gpg: error loading `iconv.dll': The specified module could not be found.

gpg: please see http://www.gnupg.org/download/iconv.html for more information
gpg: Signature made 10/28/04 03:22:14 using DSA key ID 57548DCD
gpg: Good signature from "Werner Koch (gnupg sig) <dd9jn@gnu.org>"
gpg: Note: This key has expired!
Primary key fingerprint: 6BD9 050F D8FC 941B 4341  2DCC 68B7 AB89 5754 8DCD

Of course, that key is expired and so who knows WTF is going on and why Git doesn't just ship their own iconv.dll!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment