-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird filename on decryption: name="-&11" #62
Comments
"-&N" is a special filename which gpg and GPGME (C library) use to denote a file descriptor. see --enable-special-filenames option of gpg: however, I can't reproduce it with gpg 2.0.25. maybe it has been fixed in gpg itself? |
Thanks. Lets hope it's fixed in new ver. My gpg is 1.4.7, which one is used for encryption, I assume. I have also gpg2 (2.0.4) installed, but it seems not used by gpgme. On decryption side gpg 2.0.14 shows same output (as pasted in the first message). |
This may be related to "suggested embedded filenames". GPG can be invoked with:
When I encrypt a buffer, and not a file on disk, then give the gpg-encrypted file to others who use a different gpg client (in this case a GUI tool on Windows), their client defaults to using the embedded filename, which is apparently always the file descriptor "-&14" in my case. They changed the default behavior by changing the option to "ignore embedded suggested filenames" and now they get what you'd expect, which is the gpg file's file name, minus the .gpg or .asc extension. This latter approach seems to be the default in most command line gpg clients, so I never ran into this problem before. My personal problem is solved, but I'm now trying to figure out how I can invoke the |
Indeed, the relevant function |
Oh indeed, my working copy was outdated. So if you have 2.0.16 installed you should be able to set it with |
is there a way to set the file name or a name for encryption?
|
@adet4ever if you set |
User prompted to save decrypted file into weird filename.
Data was encrypted with simple
GPGME::Crypto.new.encrypt('data', :recipients => 'xxxxxxxx')
.My guess, this is related to file descriptor redirection.
The text was updated successfully, but these errors were encountered: