Issue with photo ID's

Patrick Brunschwig patrick.brunschwig at gmx.net
Tue Jan 6 00:02:59 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
picture using
"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?

- -Patrick



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/+e0j2KgHx8zsInsRAh9iAJwOAW+vreE9N+lVgRtNXwnYrUaR5QCeIAoy
lVd+W9BMzV3w9yCqQKqCH+8=
=EzRK
-----END PGP SIGNATURE-----



More information about the Gnupg-devel mailing list