2007-03-08 Daiki Ueno <ueno@unixuser.org>
+ * epg.el (epg-list-keys): Parse GnuPG's print_string escape.
+
+2007-03-08 Daiki Ueno <ueno@unixuser.org>
+
* epa-mail.el (epa-mail-mode-hook): New variable.
(epa-mail-mode-on-hook): New variable.
(epa-mail-mode-off-hook): New variable.
(unless (eq (epg-context-protocol context) 'CMS)
'("--fixed-list-mode"))
(if name (list name))))
+ (coding-system-for-read 'binary)
keys string field index)
(with-temp-buffer
(apply #'call-process
(if (aref (car lines) 1)
(cdr (assq (string-to-char (aref (car lines) 1))
epg-key-validity-alist)))
- (if cert
- (condition-case nil
+ (condition-case nil
+ (if cert
(epg-dn-from-string (aref (car lines) 9))
- (error (aref (car lines) 9)))
- (aref (car lines) 9)))
+ (epg--decode-coding-string
+ (car (read-from-string (concat "\"" (aref (car lines) 9)
+ "\"")))
+ 'utf-8))
+ (error (aref (car lines) 9))))
(epg-key-user-id-list (car keys)))))
((equal (aref (car lines) 0) "fpr")
(epg-sub-key-set-fingerprint (car (epg-key-sub-key-list (car keys)))