From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#16679: 24.3.50; can't create a newly encrypted gpg file with easypg in cygwin emacs Date: Fri, 30 Aug 2019 12:59:27 +0200 Message-ID: <87ftlihqb4.fsf@gnus.org> References: <52F464D1.7070804@dickson.st> <0m38juxtvi.fsf@fencepost.gnu.org> <8338jux9v9.fsf@gnu.org> <52F60161.90707@dickson.st> <83ha89wuvp.fsf@gnu.org> <52F95B12.4030609@dickson.st> <83d2iutiov.fsf@gnu.org> <52F9B1DC.9090008@dickson.st> <83a9dxtz29.fsf@gnu.org> <52FADE9A.4050907@dickson.st> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="48002"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 16679@debbugs.gnu.org To: Jason Lewis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 30 13:00:56 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i3eeE-000CHq-EN for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Aug 2019 13:00:54 +0200 Original-Received: from localhost ([::1]:57934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3eeC-0002bi-Uj for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Aug 2019 07:00:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53490) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3edV-0002bF-LO for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2019 07:00:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3edQ-0004a9-Su for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2019 07:00:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44569) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3edQ-0004Yl-A8 for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2019 07:00:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3edP-0006vT-1O for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2019 07:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Aug 2019 11:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16679 X-GNU-PR-Package: emacs Original-Received: via spool by 16679-submit@debbugs.gnu.org id=B16679.156716278526564 (code B ref 16679); Fri, 30 Aug 2019 11:00:02 +0000 Original-Received: (at 16679) by debbugs.gnu.org; 30 Aug 2019 10:59:45 +0000 Original-Received: from localhost ([127.0.0.1]:53387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3ed3-0006uE-IE for submit@debbugs.gnu.org; Fri, 30 Aug 2019 06:59:45 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:40414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3ecw-0006ty-KO for 16679@debbugs.gnu.org; Fri, 30 Aug 2019 06:59:38 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i3ecq-0000w5-5w; Fri, 30 Aug 2019 12:59:32 +0200 In-Reply-To: <52FADE9A.4050907@dickson.st> (Jason Lewis's message of "Wed, 12 Feb 2014 13:38:18 +1100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166086 Archived-At: Jason Lewis 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: > > > (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