all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Lewis <jason@dickson.st>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 16679@debbugs.gnu.org
Subject: bug#16679: 24.3.50; can't create a newly encrypted gpg file with easypg in cygwin emacs
Date: Fri, 30 Aug 2019 21:44:08 +1000	[thread overview]
Message-ID: <8FBD44F1-EAA3-492E-A4CE-955133835B5F@dickson.st> (raw)
In-Reply-To: <87ftlihqb4.fsf@gnus.org> (sfid-20190830_205947_449580_FFFFFFFFD158A5D7)

I’m sorry I don’t use emacs under Cygwin anymore so I can’t test it

Jason

> On 30 Aug 2019, at 8:59 pm, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> 
> Jason Lewis <jason@dickson.st> writes:
> 
>> I put a (message "(car lines): %S" (car lines)) right before string is
>> assigned in epg-list-keys, resulting in lots of messages culminating in:
>> 
>> <lots of lines snipped>
>> (car lines): ["uid" "-" nil nil nil "1330660041" nil
>> "02F15375A7024F55715364D1E540EADAA09785E5" nil "ssh\\x3a//gnuradical.su"
>> nil nil nil nil nil]
>> (car lines): ["uid" "-" nil nil nil "1369245874" nil
>> "9C1185A5C5E9FC54612808977EE8F548B2258D31" nil nil nil nil nil nil nil]
>> while: Wrong type argument: stringp, nil
> 
> Are you still seeing this problem in more modern versions of Emacs?
> 
> Looking at the code, it looks like it should be pretty easy to fix -- it
> looks like this key doesn't have a UID name, which is unusual, but could
> be guarded against if it's still a problem with something like the
> below:
> 
> diff --git a/lisp/epg.el b/lisp/epg.el
> index 6d377d07e2..850bbac0db 100644
> --- a/lisp/epg.el
> +++ b/lisp/epg.el
> @@ -1326,7 +1326,8 @@ epg-list-keys
>        ((member (aref (car lines) 0) '("sub" "ssb"))
>         (push (epg--make-sub-key-1 (car lines))
>               (epg-key-sub-key-list (car keys))))
> -       ((equal (aref (car lines) 0) "uid")
> +       ((and (equal (aref (car lines) 0) "uid")
> +             (aref (car lines) 9))
>    ;; Decode the UID name as a backslash escaped UTF-8 string,
>    ;; generated by GnuPG/GpgSM.
>    (setq string (copy-sequence (aref (car lines) 9))
> 
> 
> -- 
> (domestic pets only, the antidote for overdose, milk.)
>   bloggy blog: http://lars.ingebrigtsen.no
> 






  reply	other threads:[~2019-08-30 11:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-07  4:45 bug#16679: 24.3.50; can't create a newly encrypted gpg file with easypg in cygwin emacs Jason Lewis
2014-02-08  1:42 ` Glenn Morris
2014-02-08  8:54   ` Eli Zaretskii
2014-02-08 10:05     ` Jason Lewis
2014-02-08 14:18       ` Eli Zaretskii
2014-02-10 23:04         ` Jason Lewis
2014-02-11  3:46           ` Eli Zaretskii
2014-02-11  5:15             ` Jason Lewis
2014-02-11 16:05               ` Eli Zaretskii
2014-02-12  2:38                 ` Jason Lewis
2019-08-30 10:59                   ` Lars Ingebrigtsen
2019-08-30 11:44                     ` Jason Lewis [this message]
2019-09-04 13:00                       ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8FBD44F1-EAA3-492E-A4CE-955133835B5F@dickson.st \
    --to=jason@dickson.st \
    --cc=16679@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.