"LC_ALL=pl_PL.UTF-8 gpg --gen-key" fails during confirmation
Closed, ResolvedPublic


over in https://bugs.debian.org/855419, Witold Baryluk writes that with locale
pl_PL.UTF-8 , gpg --gen-key gets stuck on the "Change (N)ame, (E)mail, or
(O)kay/(Q)uit?" prompt -- no entry seems to have an effect.

I've tried this myself, enabling the pl_PL.UTF-8 locale systemwide (but not
making it the default locale), and running:

   LC_ALL=pl_PL.UTF-8 gpg --gen-key

I note that "w" at the prompt causes the process to quit with:

    gpg: Procedura generacji klucza została anulowana.

and a return code of 2.


External Link
dkg set Version to 2.1.18.
dkg set External Link to https://bugs.debian.org/855419.
dkg added a subscriber: dkg.
werner added a subscriber: werner.Feb 17 2017, 9:47 PM

I guess that is because the prompt has not been translated but the answer string
is translated.

msgid "NnCcEeOoQq"
msgstr "IiKkEeDdWw"

Thus using 'i' should give you the prompt for name.

A fix for this would be to use a different answer string for --gen-key - the one
we use if from --full-gen-key (i.e. with "(C)omment". This would the also work
for other incomplete translations, which will have the same problem.

Should be fixed with commit 6d50eeb for 2.1.19.

My idea on how to do a general fix turned out to be too complicated and thus I
fixed just the Polish translation

werner closed this task as Resolved.Apr 3 2017, 10:58 PM
werner claimed this task.