Re: Weird locale at passphrase step

2019-02-26 Thread Andrei Fokau
That command fixed it! Thanks a lot!

Still curious how it picked up the other locale... I do have russian layout
as one of the input sources but have never set locale to ru and the system
was always in English.
In some cases the agent shows another dialog that is half-english and
half-broken-cyrillic. Very weird.

Thanks,
Andrei


On Tue, Feb 26, 2019 at 12:52 AM Daniel Kahn Gillmor 
wrote:

> On Mon 2019-02-25 19:53:17 +0100, Andrei Fokau wrote:
>
> > I have just installed GnuPG on macOS Mojave using Homebrew. When I try to
> > generate a new key I can go through almost all steps seeing messages and
> > dialogs in English, but when it asks my passphrase, I see
>
>  [ image of cyrillic glyphs and U+FFFD REPLACEMENT CHARACTER symbols ]
>
> It sounds to me like the gpg-agent process that is running on your
> system has a different locale.
>
> GnuPG asks the agent for a new passphrase, which in turn displays the
> prompt.
>
> > How do I fix this?
>
> unfortunately, it depends on how your gpg-agent is initialized, which we
> don't have enough information on here.  perhaps it was launched before
> your locale was set to en_US.UTF-8?
>
> One thing you can try as a workaround is to kill off the gpg-agent and
> it should get manually restarted on subsequent use:
>
>gpgconf --kill gpg-agent
>
> maybe someone with more info about how MacOS and Homebrew manage
> per-user services can weigh in on better workarounds, or suggest a more
> principled fix for that platform.
>
>--dkg
>
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Weird locale at passphrase step

2019-02-25 Thread Daniel Kahn Gillmor
On Mon 2019-02-25 19:53:17 +0100, Andrei Fokau wrote:

> I have just installed GnuPG on macOS Mojave using Homebrew. When I try to
> generate a new key I can go through almost all steps seeing messages and
> dialogs in English, but when it asks my passphrase, I see

 [ image of cyrillic glyphs and U+FFFD REPLACEMENT CHARACTER symbols ]

It sounds to me like the gpg-agent process that is running on your
system has a different locale.

GnuPG asks the agent for a new passphrase, which in turn displays the
prompt.

> How do I fix this?

unfortunately, it depends on how your gpg-agent is initialized, which we
don't have enough information on here.  perhaps it was launched before
your locale was set to en_US.UTF-8?

One thing you can try as a workaround is to kill off the gpg-agent and
it should get manually restarted on subsequent use:

   gpgconf --kill gpg-agent

maybe someone with more info about how MacOS and Homebrew manage
per-user services can weigh in on better workarounds, or suggest a more
principled fix for that platform.

   --dkg


signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Weird locale at passphrase step

2019-02-25 Thread Andrei Fokau
Hello,

I have just installed GnuPG on macOS Mojave using Homebrew. When I try to
generate a new key I can go through almost all steps seeing messages and
dialogs in English, but when it asks my passphrase, I see:

[image: image.png]

My GnuPG version and locale:

$ gpg --version
gpg (GnuPG) 2.2.13
libgcrypt 1.8.4

$ echo $LANGUAGE
en_US.UTF-8

$ locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL="en_US.UTF-8"

How do I fix this?

Thanks,
Andrei
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users