bug-gnulib
[Top][All Lists]
Advanced

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

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


From: Simon Josefsson
Subject: Re: [PATCH] announce-gen: Improve GnuPG verification instructions.
Date: Mon, 11 Jul 2022 09:39:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Bruno Haible <bruno@clisp.org> writes:

> 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

Thanks, especially for the pointer, and I'll try to keep it around since
I tend to forget about this...

/Simon

>
> 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;
>
>
>
>
>

Attachment: signature.asc
Description: PGP signature


reply via email to

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