[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13344: 24.3.50; Gnus error c:/dev/fd/0
From: |
Lars Magne Ingebrigtsen |
Subject: |
bug#13344: 24.3.50; Gnus error c:/dev/fd/0 |
Date: |
Thu, 03 Jan 2013 23:41:00 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> Looks like this comes from this snippet in epg.el:epg--start:
>
> ;; 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
> (when (= (call-process "tty" "/dev/fd/0" t) 0)
> (delete-backward-char 1)
> (setq terminal-name (buffer-string))))
>
> Obviously, this will never work on Windows.
Looks like this code was introduced by this patch:
2012-12-28 Daiki Ueno <ueno@gnu.org>
* epg.el: Support pinentry-curses.
So perhaps that code should just be disabled for Windows?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/