Since GnuPG 2.2.28 the command: »gpg -e File.txt« (not with »-r 0x1234567890ABCDEF«) doesn't work.
My long GPG-ID (example here) has been stored in the »gpg.conf« [encrypt-to 0x1234567890ABCDEF].
After input of the »gpg -e« command, the following error message appears:
Y:\>gpg -e File.zip
gpg: Fatal: WriteConsole failed: Ein an das System angeschlossenes Gerät funktioniert nicht.
GnuPG 2.2.27 works perfect with »gpg -e« in combination with "encrypt-to 0x1234567890ABCDEF" in gpg.conf.
In GnuPG 2.2.28 (and V2.3.1) I have to state myself as the recipient. That was not the case in the previous version.
I am now using the previous version (GnuPG 2.2.27) again.