Commit 00cd4c1c authored by Daiki Ueno's avatar Daiki Ueno

* epg.el (epg--start): Don't call "tty" program on W32 platforms.

parent 0f668a4d
2013-01-04 Daiki Ueno <ueno@gnu.org>
* epg.el (epg--start): Don't call "tty" program on W32 platforms.
Suggested by Eli Zaretskii <eliz@gnu.org>.
2013-01-04 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-set-file-uid-gid): UID and GID must be
......
......@@ -1166,12 +1166,13 @@ This function is for internal use only."
;; Set GPG_TTY and TERM for pinentry-curses. Note that we can't
;; use `terminal-name' here to get the real pty name for the child
;; process, though /dev/fd/0" is not portable.
(with-temp-buffer
(condition-case nil
(when (= (call-process "tty" "/dev/fd/0" t) 0)
(delete-backward-char 1)
(setq terminal-name (buffer-string)))
(file-error)))
(unless (memq system-type '(ms-dos windows-nt))
(with-temp-buffer
(condition-case nil
(when (= (call-process "tty" "/dev/fd/0" t) 0)
(delete-backward-char 1)
(setq terminal-name (buffer-string)))
(file-error))))
(when terminal-name
(setq process-environment
(cons (concat "GPG_TTY=" terminal-name)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment