for GnuPG GUI, force gpg response in english language?

Michael Anders micha137 at gmx.de
Mon Dec 30 22:05:00 CET 2013


I am maintaining a program that features a minimalistic GnuPG GUI as an
accessory.
(http://www.fh-wedel.de/~an/crypto/Academic_signature_eng.html)
Now I encountered a problem with other than english versions of GnuPG:
a) The verification of a signature (--verify) always returns false,
regardless of the result of the verification.(May be someone can give me
a rationale for this behavior.)
b) as a workaround I have my interface analyze the comments gnupg
returns. It so happens that the comments on --verify are returned in the
error channel. So I checked for the keyword "good signature" in the
error channel to use it as a flag that verfication succeeded. That works
nicely. When I install my software on a german language ubuntu, however,
the response is given in german language and is not "good signature" but
a german tranlation. The GUI obviously fails to recognize the success of
the verification then.
I presume you can see it would be awkward to check for "good signature"
in all languages from afrikaans to zulu. A GnuPG option to force the
response to be in english would solve the problem elegantly. Can anyone
give me a hint on how to do that? 


I wish you all had a Merry Christmas and will have a Happy New Year,
   Michael Anders




More information about the Gnupg-users mailing list