[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Texinfo 7.0.94 on native Windows
From: |
Eli Zaretskii |
Subject: |
Re: Texinfo 7.0.94 on native Windows |
Date: |
Sun, 15 Oct 2023 17:03:08 +0300 |
> From: Bruno Haible <bruno@clisp.org>
> Cc: GavinSmith0123@gmail.com, bug-texinfo@gnu.org
> Date: Sun, 15 Oct 2023 15:11:33 +0200
>
> Eli Zaretskii wrote:
> > > For 'popen' and 'pclose', one needs the gnulib modules 'popen' and
> > > 'pclose',
> > > respectively.
> >
> > Windows has _popen and _pclose, which can be used instead.
>
> _popen uses text mode, not binary mode, by default, AFAIK. This can be
> problematic.
_popen accepts a MODE argument which can be used to control that, see
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/popen-wpopen?view=msvc-170
We use this in the stand-alone Info reader, for example, in this
snippet from info/filesys.c:
stream = popen (command, FOPEN_RBIN);
Re: Texinfo 7.0.94 on native Windows, Gavin Smith, 2023/10/15
MinGW "info" program broken?, Gavin Smith, 2023/10/15
Re: MinGW "info" program broken?, Eli Zaretskii, 2023/10/15
Re: MinGW "info" program broken?, Bruno Haible, 2023/10/15
Re: MinGW "info" program broken?, Eli Zaretskii, 2023/10/15
Re: MinGW "info" program broken?, Bruno Haible, 2023/10/15