From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: pierre.techoueyres@free.fr (Pierre =?UTF-8?Q?T=C3=A9choueyres?=) Newsgroups: gmane.emacs.bugs Subject: bug#33040: 26.1.50; Epg prompt on Microsoft Windows differ from the GNU/Linux on when asking passphrase Date: Wed, 24 Oct 2018 21:21:07 +0200 Message-ID: <878t2nm9r0.fsf@killashandra.ballybran.fr> References: <87y3b0cynl.fsf@killashandra.ballybran.fr> <838t2svs5m.fsf@gnu.org> <87in1rmgh2.fsf@killashandra.ballybran.fr> <837ei7s0nw.fsf@gnu.org> <87d0rzmd4o.fsf@killashandra.ballybran.fr> <831s8fry59.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1540408806 30938 195.159.176.226 (24 Oct 2018 19:20:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 Oct 2018 19:20:06 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) Cc: 33040@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 24 21:20:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFOhE-0007vl-SF for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2018 21:20:00 +0200 Original-Received: from localhost ([::1]:49977 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFOjL-0003fb-AO for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Oct 2018 15:22:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFOjF-0003d1-Hb for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 15:22:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFOjC-0006xh-DJ for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 15:22:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36246) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFOjC-0006xZ-8y for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 15:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gFOjC-0005rw-41 for bug-gnu-emacs@gnu.org; Wed, 24 Oct 2018 15:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: pierre.techoueyres@free.fr (Pierre =?UTF-8?Q?T=C3=A9choueyres?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Oct 2018 19:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33040 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 33040-submit@debbugs.gnu.org id=B33040.154040887122488 (code B ref 33040); Wed, 24 Oct 2018 19:22:02 +0000 Original-Received: (at 33040) by debbugs.gnu.org; 24 Oct 2018 19:21:11 +0000 Original-Received: from localhost ([127.0.0.1]:40504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFOiN-0005qe-41 for submit@debbugs.gnu.org; Wed, 24 Oct 2018 15:21:11 -0400 Original-Received: from smtp3-g21.free.fr ([212.27.42.3]:4875) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gFOiL-0005qV-TP for 33040@debbugs.gnu.org; Wed, 24 Oct 2018 15:21:10 -0400 Original-Received: from killashandra.ballybran.fr.free.fr (unknown [IPv6:2a01:e35:2e14:eab0:d4dc:72c5:daba:b8ca]) by smtp3-g21.free.fr (Postfix) with ESMTPS id DD79513F88A; Wed, 24 Oct 2018 21:21:07 +0200 (CEST) In-Reply-To: <831s8fry59.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 24 Oct 2018 21:35:14 +0300") 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: 208.118.235.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:151567 Archived-At: --=-=-= Content-Type: text/plain Hello Eli, please find the patch bellow. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Unify-prompt-for-gnupg-passphrase-between-GNU-Linux-.patch Content-Description: epg prompt patch >From 32644ac1027114d3f4caaf2e25ae985241ab867b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20T=C3=A9choueyres?= Date: Sun, 14 Oct 2018 17:49:12 +0200 Subject: [PATCH] Unify prompt for gnupg passphrase between GNU/Linux and Windows. * lisp/epg.el (epg--start): Use `raw-text' for coding system instead of binary in order to avoid spurious carriage return on Microsoft Windows and DOS when prompting for a password. --- lisp/epg.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/epg.el b/lisp/epg.el index 8f26cd34ee..28afa59d8e 100644 --- a/lisp/epg.el +++ b/lisp/epg.el @@ -655,7 +655,7 @@ epg--start :command (cons (epg-context-program context) args) :connection-type 'pipe - :coding '(binary . binary) + :coding 'raw-text :filter #'epg--process-filter :stderr error-process :noquery t))) -- 2.17.2 --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> Sorry, when :coding 'raw-text-unix didn't work as expected I first try >> >> :coding (if (memq system-type '(ms-dos windows-nt)) >> 'raw-text-dos >> 'raw-text-unix) >> >> then I realized it was equivalent to : >> :coding 'raw-text > > Actually, no: it isn't equivalent. Just raw-text tells Emacs to use > the default on encoding (thus -dos on Windows and -unix on GNU/Linux), > and to _detect_ the EOL format on decoding. But I don't think this is > a problem in this case, is it? > No, it isn't a problem, and on the contrary it's exactly what I want : detect the EOL format for decoding. --=-=-=--