unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Daiki Ueno <ueno@gnu.org>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: nyc4bos@aol.com, 13344-done@debbugs.gnu.org
Subject: bug#13344: 24.3.50; Gnus error c:/dev/fd/0
Date: Fri, 04 Jan 2013 09:03:13 +0900	[thread overview]
Message-ID: <871ue1ddby.fsf-ueno@gnu.org> (raw)
In-Reply-To: <m3sj6hj3er.fsf@stories.gnus.org> (Lars Magne Ingebrigtsen's message of "Thu, 03 Jan 2013 23:41:00 +0100")

Lars Magne Ingebrigtsen <larsi@gnus.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.
>
> So perhaps that code should just be disabled for Windows?        

Oops.  Though I tend to revert the previous patch, I've just added error
check around call-process for now.  Sorry for the inconvenience.

Regards,
-- 
Daiki Ueno






  reply	other threads:[~2013-01-04  0:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-03  0:14 bug#13344: 24.3.50; Gnus error c:/dev/fd/0 nyc4bos
2013-01-03  0:57 ` Lars Magne Ingebrigtsen
2013-01-03 22:16   ` nyc4bos
2013-01-03 17:29 ` Eli Zaretskii
2013-01-03 22:07   ` nyc4bos
2013-01-03 22:41   ` Lars Magne Ingebrigtsen
2013-01-04  0:03     ` Daiki Ueno [this message]
2013-01-04  7:48       ` Eli Zaretskii
2013-01-04 22:58         ` Daiki Ueno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871ue1ddby.fsf-ueno@gnu.org \
    --to=ueno@gnu.org \
    --cc=13344-done@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=nyc4bos@aol.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).