[Enigmail] Building enigmail on OS/2

Patrick Brunschwig patrick at enigmail.net
Fri Jan 6 05:26:47 PST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 05.01.12 18:58, Dave Yeo wrote:
> On 01/05/12 02:27 am, Patrick Brunschwig wrote:
>> The code you disabled made this: if an argument contains spaces,
>>  insert " at the start and the end of the argument.
>> 
>> Given that you disabled this, you should probably ensure that
>> the path to gpg.exe does not contain spaces.
>> 
>> Try to replace the #ifdef ... #endif with this here:
>> 
>> #ifndef XP_OS2 nsAutoString tmpArg (args[j]); nsAutoString quote;
>>  quote.AssignASCII("\""); if (tmpArg.FindChar(' ', 0) >= 0) { 
>> tmpArg.Insert(quote, 0); tmpArg.Append(quote); argList[j+1] = 
>> ToNewUTF8String(tmpArg); } else { argList[j+1] = 
>> ToNewUTF8String(nsDependentString(args[j])); } #else argList[j+1]
>> = ToNewUTF8String(nsDependentString(args[j])); #endif
> 
> OK, this works much better, wizard creates a key and revocation
> key but when trying to send a message I get this on the console,
> 
> enigmail> f:\usr\bin\gpg.exe --charset utf8 --batch --no-tty 
> --status-fd 2 --comment Using GnuPG with Mozilla - 
> http://enigmail.mozdev.org/ -t --clearsign -u 0x581BA3B8 
> --passphrase-fd 0 --no-use-agent usage: gpg [options] [filename]

I'm not sure if OS/2 can correctly handle spaces in command line
parameters. I'd suggest you disable the option "Add Enigmail comment
in OpenPGP signature". (OpenPGP > Preferences > Advanced)

- -Patrick

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEVAwUBTwb2lsk25cDiHiw+AQj+NAgAwVgabxV5WqbOz1r1LvY02fTXMzbse8wS
G+AcF8aN1/LafhmVixq96uMcZDXdzldSYPjrQZHH9M7uDm0DM8xomrnOLoSaxeGu
1+ge0GbbmTKAQdYrqeO2prIqveLVedgZUJWKF9BgLTYSTTDmN7+u1aTs9L1VFe3x
fX3Dm0TllNW/SkGQD75NhKvrWxTUzac1J+CmGIUrx4IU3p0t4Rg+Ajc/ju1jVh3W
xwGBeCeB9g3rHDXF9IkpxGbpNzaW1ae3WCLqNuUGoGOuMVpX4jeTPU61v+oNzu/K
S+oo0eESiFr0k+DQWStg7mKWxvDMXanK+CfNzBTJV+lKxlWRasO6oA==
=axei
-----END PGP SIGNATURE-----


More information about the Enigmail mailing list