[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].
[1]
https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html
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
this:
gpg --verify $tarballs[0].sig
EOF
- 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
^sub`;
if ($gpg_fingerprint =~ /^pub/)
{
chop $gpg_fingerprint;