Issue with photo ID's
patrick.brunschwig at gmx.net
Tue Jan 6 00:02:59 CET 2004
-----BEGIN PGP SIGNED MESSAGE-----
I am implementing displaying of photo ID's in Enigmail. On Linux, all
works as expected, but on Windows I'm encountering a problem.
Since I want to display the photo from from within Mozilla, I read the
"gpg --status-fd 3 --attribute-fd 4 --list-keys 0x<16byte-key>"
On Linux, I get the "[GNUPG:] ATTRIBUTE ..." line, followed by the jpeg
data as expexted. But on Windows, all \n (0x0D) are converted to \r\n
(0x0A0D), even inside the jpeg data, so that the picture is corrupt. I
have tried gpg 1.2.2 and gpg 1.2.4.
Is this a (known?) bug of gpg, or is this expected behaviour?
Of course, I could convert \r\n back to \n (which indeed makes the jpeg
display correctly), but I don't feel very safe with this! And how would
it be e.g. on MacOS?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Gnupg-devel