2007-03-07 Daiki Ueno <ueno@unixuser.org>
* epg.el (epg--start): Don't specify --use-agent if the protocol
- is CMS.
+ is CMS; set coding-system-for-read to binary.
+ (epg--status-*SIG): Decode user-id.
2007-02-02 Daiki Ueno <ueno@unixuser.org>
(list "--output" (epg-context-output-file context)))
args))
(coding-system-for-write 'binary)
+ (coding-system-for-read 'binary)
process-connection-type
(orig-mode (default-file-modes))
(buffer (generate-new-buffer " *epg*"))
(condition-case nil
(setq user-id (epg-dn-from-string user-id))
(error)))
+ (condition-case nil
+ (setq user-id (epg--decode-coding-string user-id 'utf-8))
+ (error))
(if entry
(setcdr entry user-id)
(setq epg-user-id-alist
(defalias 'epg--encode-coding-string 'encode-coding-string)
(defalias 'epg--encode-coding-string 'identity))
+(if (fboundp 'decode-coding-string)
+ (defalias 'epg--decode-coding-string 'decode-coding-string)
+ (defalias 'epg--decode-coding-string 'identity))
+
(defun epg--args-from-sig-notations (notations)
(apply #'nconc
(mapcar