''gpg: failed to translate osfhandle 0x00000003' known|expected? -fd 4-7 doesn't.

omcujl92 at duck.com omcujl92 at duck.com
Sun Mar 24 02:17:45 CET 2024


>From https://gnupg.org/download/index.html:
Windows ...
        download sig Simple installer for the current GnuPG <--
https://gnupg.org/ftp/gcrypt/binary/gnupg-w32-2.4.5_20240307.exe

-----

C:\Program Files (x86)\GnuPG\bin>ver

Microsoft Windows [Version 10.0.19045.4123]

C:\Program Files (x86)\GnuPG\bin>.\gpg.exe --version
gpg (GnuPG) 2.4.5
libgcrypt 1.10.3
Copyright (C) 2024 g10 Code GmbH
...

C:\Program Files (x86)\GnuPG\bin>echo Hello World > HelloWorld.txt

C:\Program Files (x86)\GnuPG\bin>type HelloWorld.txt | .\gpg.exe
--passphrase-fd 3 -c  3< HelloWorld.txt

gpg: failed to translate osfhandle 0x00000003

-----


Is 'gpg: failed to translate osfhandle 0x00000003' known / expected?

Is there a workaround?
- same result for fd 8 and above. e.g. gpg: failed to translate
osfhandle 0x0000000b


Curiously:
C:\Program Files (x86)\GnuPG\bin>type HelloWorld.txt | .\gpg.exe
--passphrase-fd 4 -c  4< HelloWorld.txt

- brought up a pinentry-qt dialogue. i.e. didn't read from fd 4.
- same for fd 5, 6, and 7.

Is there a workaround?



More information about the Gnupg-users mailing list