2006-09-04 Daiki Ueno <ueno@unixuser.org>
- * epg-config.el (epg-passphrase-coding-system): New user option.
+ * epg-config.el (epg-locale-coding-system): New user option.
* epg.el (epg--list-keys-1): Respect epg-gpg-home-directory.
(epg--clear-string): New function.
:type 'string)
(defcustom epg-gpg-home-directory nil
- "The directory which contains the `gpg' configuration files."
+ "The directory which contains the configuration files of `epg-gpg-program'."
:group 'epg
:type '(choice (const :tag "Default" nil) directory))
-(defcustom epg-passphrase-coding-system nil
- "The coding-system used to type passphrases."
+(defcustom epg-locale-coding-system (if (boundp 'locale-coding-system)
+ locale-coding-system)
+ "Coding system to use with messages from `epg-gpg-program'."
:group 'epg
:type 'symbol)
(setq passphrase-with-new-line (concat passphrase "\n"))
(epg--clear-string passphrase)
(setq passphrase nil)
- (if epg-passphrase-coding-system
+ (if epg-locale-coding-system
(progn
(setq encoded-passphrase-with-new-line
(encode-coding-string
passphrase-with-new-line
- epg-passphrase-coding-system))
+ epg-locale-coding-system))
(epg--clear-string passphrase-with-new-line)
(setq passphrase-with-new-line nil))
(setq encoded-passphrase-with-new-line