+2006-05-30 Hiroya Murata <lapis-lazuli@pop06.odn.ne.jp>
+
+ * epa-file.el (epa-file-write-region): Encode the plain text with
+ coding-system-for-write.
+
2006-05-30 Daiki Ueno <ueno@unixuser.org>
* epa-file.el (epa-file-insert-file-contents):
(if append
(error "Can't append to the file."))
(setq file (expand-file-name file))
- (let* ((coding-system (if (boundp 'last-coding-system-used)
- (condition-case nil
- (write-region (point-min) (point-max) "/")
- (error last-coding-system-used))
- buffer-file-coding-system))
+ (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))
+ buffer-file-coding-system)))
(context (epg-make-context))
(coding-system-for-write 'binary)
string entry)