bug-texinfo
[Top][All Lists]
Advanced

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

Re: Texinfo 7.0.94 on native Windows


From: Bruno Haible
Subject: Re: Texinfo 7.0.94 on native Windows
Date: Sun, 15 Oct 2023 16:25:56 +0200

Eli Zaretskii wrote:
> _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);

This is good. But there are these two occurrences of popen():

1)
info/man.c:
    fpipe = popen (cmdline, "r");

Should better use FOPEN_RBIN as well.

2)
info/session.c:
    printer_pipe = fopen (++print_command, "w");
      printer_pipe = popen (print_command, "w");

Should better use FOPEN_WBIN.

Bruno






reply via email to

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