> On Sep 30, 2021, at 11:21 PM, Marcel Taeumel ***@***.***> wrote:
>
> 
> N.B. As of cygwin 1.5.25 fopen("crash.dmp","a") DOES NOT WORK! crash.dmp
> contains garbled output as if the file pointer gets set to the start of the
> file, not the end. So we synthesize our own append mode.
>
> Hi Eliot. Please update your Cygwin ASAP! It's hardly believeable that the append-mode in fopen is broken in a fairly recent Cygwin installation.
>
> $ cygcheck -c cygwin
> Cygwin Package Information
> Package Version Status
> cygwin 3.2.0-1 OK
> $ cygcheck -f /usr/include/stdio.h
> cygwin-devel-3.2.0-1
> This works like a charm and as expected:
>
> /* File name is hello_world.c */
> #include <stdio.h>
>
> int main(void)
> {
> FILE *pFile;
> pFile = fopen("crash.dmp","a+t");
> fprintf(pFile, "%s", "Hello!");
> fclose(pFile);
> }
> PLEASE! Update your Cygwin installation. :-)
>

I don’t use Cygwin; or rather, I don’t use Cygwin to build. I use gmake, MSVC & clang. Thanks an old comment. I’m not in a position to, nor am I interested in spending the time to, verify if it is still current.

> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub, or unsubscribe.
> Triage notifications on the go with GitHub Mobile for iOS or Android.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.