>From 6e3935351b3e681fbb531818d3b2ae6db32e7b2b 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 native locale coding system instead of binary for Microsoft Windows and DOS. --- lisp/epg.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/epg.el b/lisp/epg.el index 8f26cd34ee..000366d76a 100644 --- a/lisp/epg.el +++ b/lisp/epg.el @@ -655,7 +655,9 @@ epg--start :command (cons (epg-context-program context) args) :connection-type 'pipe - :coding '(binary . binary) + :coding (if (memq system-type '(ms-dos windows-nt)) + (cons locale-coding-system locale-coding-system) + '(binary . binary)) :filter #'epg--process-filter :stderr error-process :noquery t))) -- 2.17.2