[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] announce-gen: Improve GnuPG verification instructions.

From: Bruno Haible
Subject: Re: [PATCH] announce-gen: Improve GnuPG verification instructions.
Date: Sun, 10 Jul 2022 09:22:33 +0200

Simon Josefsson wrote:
> +  my $gpg_fingerprint = `LANG=C gpg --fingerprint $gpg_key_id | grep -v 
> ^sub`;

LANG=C has no effect if LC_ALL is set, since LC_ALL has a higher precedence than
LANG [1].


2022-07-10  Bruno Haible  <bruno@clisp.org>

        announce-gen: Fix internationalization in verification instructions.
        * build-aux/announce-gen: Set LC_ALL, not LANG, to "C", to force English
        output from gpg.

diff --git a/build-aux/announce-gen b/build-aux/announce-gen
index 320cf4b0d6..3847a568d2 100755
--- a/build-aux/announce-gen
+++ b/build-aux/announce-gen
@@ -546,7 +546,7 @@ and the corresponding tarball.  Then, run a command like 
   gpg --verify $tarballs[0].sig
-  my $gpg_fingerprint = `LANG=C gpg --fingerprint $gpg_key_id | grep -v ^sub`;
+  my $gpg_fingerprint = `LC_ALL=C gpg --fingerprint $gpg_key_id | grep -v 
   if ($gpg_fingerprint =~ /^pub/)
       chop $gpg_fingerprint;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]