Subject: Re: bug#6430: Emacs WINDOWS truncates exit status of processes to 8 bits

From: Óscar Fuentes <[email-masked]>
Date: Thu, 16 Jun 2016 19:56:48 +0200

Eli Zaretskii <[email-masked]> writes:

>> The MS toolchain (to name just a case that we could expect to be used
>> from Emacs) outputs quite a few exit codes larger than 255.
>
> Any pointers to where these values are documented?

cl.exe, for instance, uses the codes in winerror.h for reporting
failures:

https://msdn.microsoft.com/en-us/library/ebh0y918.aspx

AFAIR it is a common practice among MS applications, and widely used by
Windows-only software vendors.