2006-12-20 Daiki Ueno <ueno@unixuser.org>
+ * epa-file.el (epa-file-write-region): Don't attempt to write the
+ region to "/" to determine safe coding-system.
+
* epa.el (epa-list-keys): Abolished PROTOCOL arg.
(epa-sign-file): Save the output to *.p7s or *.p7m file if
epa-protocol is CMS.
(error "Can't append to the file."))
(setq file (expand-file-name file))
(let* ((coding-system (or coding-system-for-write
- (if (boundp 'last-coding-system-used)
- (condition-case nil
- (write-region (point-min) (point-max) "/")
- (error last-coding-system-used))
+ (if (fboundp 'select-safe-coding-system)
+ (select-safe-coding-system
+ (point-min) (point-max))
buffer-file-coding-system)))
(context (epg-make-context))
(coding-system-for-write 'binary)