> From: Bruno Haible <[email protected]>
> Cc: [email protected]
> Date: Sun, 15 Oct 2023 16:07:28 +0200
>
> Eli Zaretskii wrote:
> > The stand-alone Info reader built with MinGW works
> > flawlessly for me.
> >
> > > I had understood that "info" was running well on MinGW so it would be
> > > worth
> > > understanding any differences between yours and Bruno's setup.
> >
> > I'm indeed curious why this happens with the MSVC build.
>
> It happens also with the mingw-w64 version 5.0.3 build. Let me investigate...
I guess you somehow trip on this code fragment from pcterm.c:
/* Print STRING to the terminal at the current position. */
static void
pc_put_text (string)
char *string;
{
if (speech_friendly)
fputs (string, stdout);
#ifdef __MINGW32__
else if (hscreen == INVALID_HANDLE_VALUE)
fputs (string, stdout); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
else if (output_cp == CP_UTF8 || output_cp == CP_UTF7)
write_utf (output_cp, string, -1);
#endif
else
cputs (string);
}
Which probably means the screen handle is somehow invalid?