Codebase list texinfo / 1e29945
Cherry-pick upstream fix for makeinfo reading from - (stdin). Norbert Preining 2 years ago
3 changed file(s) with 34 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 texinfo (6.8-2) UNRELEASED; urgency=medium
1
2 * Cherry-pick upstream fix for makeinfo reading from - (stdin).
3
4 -- Norbert Preining <norbert@preining.info> Wed, 07 Jul 2021 04:46:45 +0900
5
06 texinfo (6.8-1) experimental; urgency=medium
17
28 [ Marriott NZ <marriott99@gmx.com> ]
22 numerical-signal-names
33 #Update-locale-handling-for-Perl-5.28
44 #enable-xs-parser
5 upstream-c0666e580a-fix-makeinfo-dash-input
0 ---
1 tp/Texinfo/XS/parsetexi/input.c | 13 +++++++++----
2 1 file changed, 9 insertions(+), 4 deletions(-)
3
4 --- a/tp/Texinfo/XS/parsetexi/input.c
5 +++ b/tp/Texinfo/XS/parsetexi/input.c
6 @@ -560,11 +560,16 @@ locate_include_file (char *filename)
7 int
8 input_push_file (char *filename)
9 {
10 - FILE *stream;
11 + FILE *stream = 0;
12
13 - stream = fopen (filename, "r");
14 - if (!stream)
15 - return errno;
16 + if (!strcmp (filename, "-"))
17 + stream = stdin;
18 + else
19 + {
20 + stream = fopen (filename, "r");
21 + if (!stream)
22 + return errno;
23 + }
24
25 if (input_number == input_space)
26 {