gpg2.exe 2.0.29 is marked as being version "int)" and lower than 2.0.7
OpenPGP addon for Mozilla Thunderbird
Brought to you by:
pbrunschwig
Enigmail as from 3.12.2015 does not read given version-strings from gpg2.exe. The version number evaluates to "int)".
2015-12-03 08:22:25.966 [CONSOLE] enigmail> "C:\Program Files (x86)\GNU\GnuPG\gpgv2.exe" --version --version --batch --no-tty --charset utf-8 --display-charset utf-8 2015-12-03 08:22:26.205 [DEBUG] enigmail> DONE 2015-12-03 08:22:26.206 [CONSOLE] TypeError: can't pass the number NaN to argument 1 of int MultiByteToWideChar(unsigned_int, uint32_t, char*, int, char16_t*, int) 2015-12-03 08:22:26.206 [DEBUG] enigmail.js: detected GnuPG version 'int)' 2015-12-03 08:22:46.981 [DEBUG] enigmailCommon.jsm: filePicker: false 2015-12-03 08:25:19.623 [DEBUG] enigmailCommon.js: EnigInitCommon: id=enigmailAlertDlg 2015-12-03 08:25:26.519 [DEBUG] enigmailCommon.jsm: dispatchEvent f=resizeDlg 2015-12-03 08:25:29.134 [DEBUG] enigmailCommon.jsm: dispatchEvent running mainEvent 2015-12-03 08:25:34.085 [DEBUG] enigmailMessengerOverlay.js: updateOptionsDisplay: 2015-12-03 08:25:34.086 [DEBUG] funcs.jsm: collapseAdvanced: 2015-12-03 08:25:38.564 [DEBUG] enigmailAbout.js: enigAboutLoad 2015-12-03 08:25:38.566 [DEBUG] enigmailCommon.jsm: getFrame: name=contentFrame 2015-12-03 08:25:38.566 [DEBUG] app.jsm: getVersion 2015-12-03 08:25:38.566 [DEBUG] app.jsm: installed version: 1.9a1pre 2015-12-03 08:25:51.065 [DEBUG] enigmailAbout.js: interpretHtmlClick: href='https://www.enigmail.net/' 2015-12-03 08:29:30.872 [DEBUG] enigmailMessengerOverlay.js: updateOptionsDisplay: 2015-12-03 08:29:30.872 [DEBUG] funcs.jsm: collapseAdvanced: 2015-12-03 08:29:33.439 [DEBUG] enigmailMessengerOverlay.js: updateOptionsDisplay: 2015-12-03 08:29:33.439 [DEBUG] funcs.jsm: collapseAdvanced: 2015-12-03 08:29:35.550 [DEBUG] enigmailCommon.js: EnigInitCommon: id=enigmailViewFile 2015-12-03 08:29:35.593 [DEBUG] enigmailHelp.js: enigLoadPage 2015-12-03 08:29:35.593 [DEBUG] enigmailCommon.jsm: getFrame: name=contentFrame
gpg2.exe exausts for
>"C:\Program Files (x86)\GNU\GnuPG\gpg2.exe" --version --version --batch --no-tty --charset utf-8 --display-charset utf-8 gpg (GnuPG) 2.0.29 (Gpg4win 2.3.0) libgcrypt 1.6.4 Copyright (C) 2015 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Home: C:/Users/sct-muc.BFS/AppData/Roaming/gnupg Unterstützte Verfahren: Öff. Schlüssel: RSA, RSA, RSA, ELG, DSA Verschlü.: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Komprimierung: nicht komprimiert, ZIP, ZLIB, BZIP2
In tune gpg2.exe is marked as being to old (before version 2.0.7) and not usable.
gpgv2 is the wrong tool. gpgv2 can only be used to verify signatures. You would need to use gpg2.exe or gpg.exe, in which case Enigmail will not complain
It will complain.
Same for gpg2.exe. Doesn't matter. The version string given back isn't parsed the right way. With gpgv2.exe it is parsed to "infinite". With gpg2.exe it is parsed to "int)". Both are wrong. Both lead to dialogs stating a version below 2.0.7 installed. Installed are version 2.0.29 for gpg2.exe and gpgv2.exe.
I've took the output from gpgv2.exe. But that doesn't matter. The output from gpg2.exe is identical:
Trying to setup the whole thing using provided wizard: same. No way out. No encription. No decription. Blocker!
x
x
x
x
x
As I stated: no encription. No decription. Blocker. Enigmail not working any more.
Ideally, you do not enter any value into the path field, and Enigmail will find gpg on its own. In case Enigmail doesn't find gpg, (assuming that you use gpg4win) the only correct location is this:
That's due to the special setup of gpg4win.
If that would be true, why do I see this?
With settings:
You seem to be using a nightly build of Enigmail with Thunderbird 45.0a1. Which build of Enigmail do you use precisely? Enigmail > About should tell you.
Oh, and I forgot: do you use the x86-32 or x64 build of Thunderbird?
The error message is the same:
C:\Program Files (x86)\GNU\GnuPG\gpg2.exe
C:\Program Files (x86)\GNU\GnuPG\gpgv2.exe
C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exe
C:\Program Files (x86)\GNU\GnuPG\pub\gpg.exe
* C:\Program Files (x86)\GNU\GnuPC\pub\gpgv.exe
And while I am at it:
gpg.exe, gpg2.exe, gpgv.exe are in %PATH%. Enigmail doesn't find them anyway -- or better: it finds them, but ignores them because the version found is "int)" (gpg2.exe, gpg.exe), "infinite" (gpgv.exe, gpgv2.exe).
I've tried gpg from an other package (https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.1.10_20151204.exe) too: nearly same results. Enigmail wont work together with these versions.
One other idea came to mind: cygwins gpg.exe. It seems to load, but version reported by enigmail wheren't readable characters, drawn as little boxes to show there is something, but no character to display). Enigmail sorts it out being before 2.0.7 too (besides -- cygwin only has version 1.4.x aailable).
And here is what these versions print if called with "--version":
GPG4Win:
https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.1.10_20151204.exe
I could sort out the parsing problem being because of de_DE for locale. The same happens with en_US. And: the version from https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.1.10_20151204.exe doesn't ship with locales.
Last edit: Thomas Schweikle 2015-12-08
Sorry, I asked you for the specific Enigmail build date. Nothing more, nothing less. I have a specific reason to ask you for just this bit of information.
Using Enigmail: Running Enigmail version 1.9a1pre (20151207-2313)
Running Thunderbird version:
What is the output of the following command (on a command prompt:)
chcp
On my system the result is:
Active code page: 437
I just created a new nightly build. Can you try this one and see if it works?