GNU bug report logs -
#3829
23.0.96; Cannot read gpg file
Previous Next
Reported by: Андрей Парамонов <cmr.pent <at> gmail.com>
Date: Sun, 12 Jul 2009 12:55:05 UTC
Severity: wishlist
Tags: fixed
Merged with 4077,
8129
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Андрей Парамонов <cmr.pent <at> gmail.com> writes:
> To reproduce:
>
> 0) emacs -Q
>
> 1) C-x C-f attached file
>
> 2) Emacs says:
> File exists, but cannot be read
(The user included a trusted.gpg file; which is a key ring.)
The problem here is that there are two common uses of the .gpg suffix.
Emacs assumes that all files that end with .gpg are encrypted files, and
will error out dramatically when trying to read those files. The only
way the user has to look at them is with `M-x find-file-literally'.
But .gpg is also a common suffix for key ring files.
Emacs could be more helpful here and check the first few bytes of the
file to see what type it is.
https://lists.gnupg.org/pipermail/gnupg-users/2013-September/047725.html
But that doesn't seem to be totally trivial.
Should Emacs treat these as normal files if gpg gives an error message
when trying to open them?
---
Error while decrypting with "/usr/bin/gpg2":
gpg: decrypt_message failed: Unexpected error
---
That doesn't seem very logical, either...
Anybody got any ideas?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 287 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.