bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MinGW "info" program broken?


From: Eli Zaretskii
Subject: Re: MinGW "info" program broken?
Date: Sun, 15 Oct 2023 18:44:07 +0300

> From: Bruno Haible <bruno@clisp.org>
> Cc: bug-texinfo@gnu.org
> 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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]