bug-texinfo
[Top][All Lists]
Advanced

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

Re: Texinfo 6.8 released


From: Gavin Smith
Subject: Re: Texinfo 6.8 released
Date: Tue, 6 Jul 2021 15:08:06 +0100

On Tue, Jul 6, 2021 at 2:09 PM Ken Brown <kbrown@cornell.edu> wrote:

> It was just reported on the Cygwin mailing list that makeinfo can't be used 
> in a
> pipeline any more:
>
>    https://cygwin.com/pipermail/cygwin/2021-July/248849.html
>
> I assume this is not an intentional change.

It wasn't: it is due to the use internally of "-" to represent reading
from stdin, which is recognised by Perl's "open" command but not in
the C code. I've fixed it in commit c0666e580a (change below). Please
try the change and see if building your documentation works again.

diff --git a/tp/Texinfo/XS/parsetexi/input.c b/tp/Texinfo/XS/parsetexi/input.c
index f97edbfd4e..307c907157 100644
--- a/tp/Texinfo/XS/parsetexi/input.c
+++ b/tp/Texinfo/XS/parsetexi/input.c
@@ -560,11 +560,16 @@ locate_include_file (char *filename)
 int
 input_push_file (char *filename)
 {
-  FILE *stream;
+  FILE *stream = 0;

-  stream = fopen (filename, "r");
-  if (!stream)
-    return errno;
+  if (!strcmp (filename, "-"))
+    stream = stdin;
+  else
+    {
+      stream = fopen (filename, "r");
+      if (!stream)
+        return errno;
+    }

   if (input_number == input_space)
     {



reply via email to

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