Gpg/gnupg locale failed: 'error receiving key from agent: A locale function failed - skipped'

I’ve updated GnuPg via brew to latest 2.2.20. Cannot export secret keys due to locale failed.
Already tried to modify bash_profile and get"en_US.UTF-8" set as below.
Is this the right place to ask for help?

OS version: macOS Catalina 10.15.1 (19B88)

Przemyslaws-MacBook-Pro:~$ gpg --version -v
gpg (GnuPG) 2.2.20
libgcrypt 1.8.5
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Przemyslaws-MacBook-Pro:~$ 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"

Przemyslaws-MacBook-Pro:~$ gpg --export-secret-keys -a
gpg: key DEADBEEF: error receiving key from agent: A locale function failed - skipped
gpg: key DEADBEEF: error receiving key from agent: A locale function failed - skipped
gpg: WARNING: nothing exported

Hi Przemyslaw and welcome to the Homebrew Discourse!

This is a known issue with GnuPG and has nothing to do with Homebrew.