From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Jason Lewis 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 21:44:08 +1000 Message-ID: <8FBD44F1-EAA3-492E-A4CE-955133835B5F@dickson.st> 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> <87ftlihqb4.fsf@gnus.org> (sfid-20190830_205947_449580_FFFFFFFFD158A5D7) Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="141413"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 16679@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 30 15:29:45 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 1i3gyG-000aeU-6s for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Aug 2019 15:29:44 +0200 Original-Received: from localhost ([::1]:58658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3gyE-0006f6-Rm for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Aug 2019 09:29:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39410) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3gs3-0002cu-Vz for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2019 09:23:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3gru-0005Hm-D7 for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2019 09:23:16 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i3gru-0004vP-88 for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2019 09:23:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i3fKv-0005rj-Or for bug-gnu-emacs@gnu.org; Fri, 30 Aug 2019 07:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jason Lewis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Aug 2019 11:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 16679-submit@debbugs.gnu.org id=B16679.156716546922487 (code B ref 16679); Fri, 30 Aug 2019 11:45:01 +0000 Original-Received: (at 16679) by debbugs.gnu.org; 30 Aug 2019 11:44:29 +0000 Original-Received: from localhost ([127.0.0.1]:53412 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3fKL-0005qY-Dz for submit@debbugs.gnu.org; Fri, 30 Aug 2019 07:44:29 -0400 Original-Received: from debian.organictrader.com.au ([61.69.86.230]:60346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i3fKE-0005qF-7m for 16679@debbugs.gnu.org; Fri, 30 Aug 2019 07:44:22 -0400 Original-Received: from [192.168.1.209] (unknown [203.129.27.85]) by debian.organictrader.com.au (Postfix) with ESMTPSA id ED6C03E454F; Fri, 30 Aug 2019 21:44:11 +1000 (AEST) X-Mailer: iPhone Mail (16G77) In-Reply-To: <87ftlihqb4.fsf@gnus.org> (sfid-20190830_205947_449580_FFFFFFFFD158A5D7) 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:166093 Archived-At: I=E2=80=99m sorry I don=E2=80=99t use emacs under Cygwin anymore so I can=E2= =80=99t test it Jason > On 30 Aug 2019, at 8:59 pm, Lars Ingebrigtsen wrote: >=20 > Jason Lewis writes: >=20 >> 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: >>=20 >> >> (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 >=20 > Are you still seeing this problem in more modern versions of Emacs? >=20 > 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: >=20 > 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)) >=20 >=20 > --=20 > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no >=20