From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#6430: Emacs WINDOWS truncates exit status of processes to 8 bits Date: Wed, 15 Jun 2016 14:30:20 +0200 Message-ID: <87mvmmk52b.fsf@wanadoo.es> References: <1310.80.58.205.52.1276622459.squirrel@correo.ozu.es> <831t3zg7or.fsf@gnu.org> <83d1njdvk9.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1465993892 22207 80.91.229.3 (15 Jun 2016 12:31:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jun 2016 12:31:32 +0000 (UTC) Cc: macross84@ozu.es, 6430@debbugs.gnu.org, Noam Postavsky To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 15 14:31:20 2016 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 1bD9yY-0000pR-10 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2016 14:31:18 +0200 Original-Received: from localhost ([::1]:41871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD9yX-0001jN-DN for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2016 08:31:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38722) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD9yM-0001f0-If for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 08:31:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bD9yI-0005vK-2Z for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 08:31:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57129) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bD9yH-0005vG-VO for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 08:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bD9yH-0002OS-Oh for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 08:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jun 2016 12:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6430 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 6430-submit@debbugs.gnu.org id=B6430.14659938309162 (code B ref 6430); Wed, 15 Jun 2016 12:31:01 +0000 Original-Received: (at 6430) by debbugs.gnu.org; 15 Jun 2016 12:30:30 +0000 Original-Received: from localhost ([127.0.0.1]:41233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bD9xl-0002Ni-Pp for submit@debbugs.gnu.org; Wed, 15 Jun 2016 08:30:29 -0400 Original-Received: from relaycp03.dominioabsoluto.net ([217.116.26.84]:53713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bD9xj-0002NT-SJ for 6430@debbugs.gnu.org; Wed, 15 Jun 2016 08:30:28 -0400 Original-Received: from smtp.movistar.es (smtp21.acens.net [86.109.99.145]) by relaycp03.dominioabsoluto.net (Postfix) with ESMTP id 7D4DABFA3F7; Wed, 15 Jun 2016 14:30:21 +0200 (CEST) X-CTCH-RefID: str=0001.0A0B0201.57614A5D.0187, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Original-Received: from qcore (217.125.182.141) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 574060E7013D8B88; Wed, 15 Jun 2016 12:30:21 +0000 In-Reply-To: <83d1njdvk9.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 15 Jun 2016 05:39:50 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:119578 Archived-At: Eli Zaretskii writes: >> Not really sure what this reformatting is about, but I think the point >> is that the original value does not return to lisp. > > Why is that a problem? Because Emacs is reporting something false? > The important information that I thought this was about is in the > upper 4 bits of the status, and it doesn't get lost -- it's passed > back to Emacs as the signal (if any) that caused the subprocess to > exit. > > If there are any important use cases with programs that return status > above 255, we can easily change the definition of WEXITSTATUS for > Windows. But I have yet to see a real-life example of such a program, > or any complaint about the current WEXITSTATUS definition in Emacs. You are fortunate enough to live in a world of applications ported from *nix :-) (and so do I, for the most part.) When a Windows application calls an API that fails and the application has no method for recovering from the error, it is customary to exit with the error code of the API (usually obtained with GetLastError).