* epg.el (epg--status-GET_HIDDEN): Encode passphrase with eol-type LF.
authorueno <ueno>
Fri, 24 Nov 2006 07:53:27 +0000 (07:53 +0000)
committerueno <ueno>
Fri, 24 Nov 2006 07:53:27 +0000 (07:53 +0000)
Reported by Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>.
cf. <emacs-mime-ja:02090>

ChangeLog
epg.el

index e2341d0..fc15ce5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-11-24  Daiki Ueno  <ueno@unixuser.org>
+
+       * epg.el (epg--status-GET_HIDDEN): Encode passphrase with eol-type LF.
+       Reported by Hiroya Murata  <lapis-lazuli@pop06.odn.ne.jp>.
+       cf. <emacs-mime-ja:02090>
+
 2006-11-23  Daiki Ueno  <ueno@unixuser.org>
 
        * epa.el (epa-sign-region): Query signature type at a time.
diff --git a/epg.el b/epg.el
index 1ae12b5..3e9bab0 100644 (file)
--- a/epg.el
+++ b/epg.el
@@ -1224,7 +1224,8 @@ This function is for internal use only."
                        (setq encoded-passphrase-with-new-line
                              (encode-coding-string
                               passphrase-with-new-line
-                              epg-passphrase-coding-system))
+                              (coding-system-change-eol-conversion
+                               epg-passphrase-coding-system 'unix)))
                        (epg--clear-string passphrase-with-new-line)
                        (setq passphrase-with-new-line nil))
                    (setq encoded-passphrase-with-new-line