Bruno Haible <br...@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 <br...@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; > > > > >
signature.asc
Description: PGP signature