unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Björn Lindqvist" <bjourne@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21323-done@debbugs.gnu.org
Subject: bug#21323: start-process rejects .com executables
Date: Sun, 23 Aug 2015 15:06:55 +0200	[thread overview]
Message-ID: <CALG+76cbxg8-ZmtFCrEzqc2Qfw7+XK7DwYz+sa=OdT-y+tfUGQ@mail.gmail.com> (raw)
In-Reply-To: <838u93i0xo.fsf@gnu.org>

2015-08-22 21:21 GMT+02:00 Eli Zaretskii <eliz@gnu.org>:
>> I found this bug on windows ver 24.5.1. If you try to run a .com file:
>>
>> (start-process "X" "Y" "c:/Windows/System32/tree.com")
>>
>> You get: "Spawning child process: exec format error"
>
> Indeed.
>
>> The cryptic error appears to be a result of the .com extension.
>
> No, it's because .com programs are run via cmdproxy.exe, and there's a
> bug in computing the directory where we look for it.

What is the reason for that? As you know, on modern windowses there is
no difference except for the name between .com and .exe files. If
there was an option for it, I'd set it so my binary is not run through
cmdproxy.exe.

> As a workaround, you can set CMDPROXY in the environment to point to
> cmdproxy.exe (should be in libexec/emacs/24.5/i686-pc-mingw32/
> subdirectory of the directory where you installed Emacs 24.5).
>
> I've now fixed this for the next release so it will work even without
> setting CMDPROXY in the environment.  Thanks.

Thank you for the quick turnaround!

-- 
mvh/best regards Björn Lindqvist





  reply	other threads:[~2015-08-23 13:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-22 17:24 bug#21323: start-process rejects .com executables Björn Lindqvist
2015-08-22 19:21 ` Eli Zaretskii
2015-08-23 13:06   ` Björn Lindqvist [this message]
2015-08-23 14:29     ` Eli Zaretskii

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='CALG+76cbxg8-ZmtFCrEzqc2Qfw7+XK7DwYz+sa=OdT-y+tfUGQ@mail.gmail.com' \
    --to=bjourne@gmail.com \
    --cc=21323-done@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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).