From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist Newsgroups: gmane.emacs.bugs Subject: bug#21323: start-process rejects .com executables Date: Sun, 23 Aug 2015 15:06:55 +0200 Message-ID: References: <838u93i0xo.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1440335381 11041 80.91.229.3 (23 Aug 2015 13:09:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Aug 2015 13:09:41 +0000 (UTC) Cc: 21323-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 23 15:09:32 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZTV1e-0000Xz-0r for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Aug 2015 15:09:30 +0200 Original-Received: from localhost ([::1]:37961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTUzS-0003BP-PG for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Aug 2015 09:07:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTUzK-00037O-T7 for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 09:07:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZTUzG-0008In-9m for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 09:07:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZTUzG-0008IF-2J for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 09:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZTUzF-0008EE-LF for bug-gnu-emacs@gnu.org; Sun, 23 Aug 2015 09:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Lindqvist Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Aug 2015 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21323 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21323-done@debbugs.gnu.org id=D21323.144033521931622 (code D ref 21323); Sun, 23 Aug 2015 13:07:01 +0000 Original-Received: (at 21323-done) by debbugs.gnu.org; 23 Aug 2015 13:06:59 +0000 Original-Received: from localhost ([127.0.0.1]:35664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTUzD-0008Dy-Bv for submit@debbugs.gnu.org; Sun, 23 Aug 2015 09:06:59 -0400 Original-Received: from mail-la0-f50.google.com ([209.85.215.50]:33816) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTUzA-0008Do-Ut for 21323-done@debbugs.gnu.org; Sun, 23 Aug 2015 09:06:57 -0400 Original-Received: by laba3 with SMTP id a3so63332100lab.1 for <21323-done@debbugs.gnu.org>; Sun, 23 Aug 2015 06:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=MOyy4wBeezjcVmJgna9VyIKqRddIPRPwE2tdnYvlEb0=; b=TWc1O2kTALBQUsofAdmutSakMEaNkYIl70X576CPjUQR9sgetCT6fQDga+MNFIRpp/ tVWiTr0MpSDMx+cqMzdaEgJS9tX2VO/L9iXudbUrZ00qo7gRR7nb7a5CK41QBpf1XEYc gqBqRZV47sfY17M+vNo843S6m2op0VsJ4DVWQ5JmbEHafji8Hl2z1iBG7zEKxJZ1MlH2 /4SHdb2so3i2ui4LlnlRaLwuZjWGqrl8HteSnUCLRpkTfoj2QwmfvPbw1JlJi36xMFmp tosxtNzg8tOrTyvWtkKJ5n6EmFV6BENzERURemjCMDHAoQOSNeaVaKBPADYglLFfdMOS Kr5w== X-Received: by 10.152.21.231 with SMTP id y7mr13033172lae.63.1440335216027; Sun, 23 Aug 2015 06:06:56 -0700 (PDT) Original-Received: by 10.25.29.148 with HTTP; Sun, 23 Aug 2015 06:06:55 -0700 (PDT) In-Reply-To: <838u93i0xo.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105725 Archived-At: 2015-08-22 21:21 GMT+02:00 Eli Zaretskii : >> 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! --=20 mvh/best regards Bj=C3=B6rn Lindqvist