texinfo-devel
[Top][All Lists]
Advanced

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

Re: makeinfo and end-of-line format


From: Eli Zaretskii
Subject: Re: makeinfo and end-of-line format
Date: Mon, 15 Jun 2015 05:41:14 +0300

> Date: Sun, 14 Jun 2015 22:46:46 GMT
> From: Karl Berry <address@hidden>
> 
>     eliz> I think I'd like Patrice's opinion on this because making this
>     change in open_out means not only Info files, but every file will be
>     opened in Unix mode.  Should we make the change only for Info (in
>     Info.pm) instead?
> 
> I am not Patrice, but in the interests of not holding up the release
> forever on this point ... did makeinfo 4, or makeinfo 5, generate CRLF
> or LF for the html/xml/plain text output when run on Windows?

They generated CRLF.

> Presumably the safest thing would be to do what was done in the past.

We can't: since the tag tables now account for the CR characters,
where they didn't before, producing CRLF will make the tag tables
inaccurate for Info readers, like Emacs, which remove CR characters
when they read the Info files.

The switch to LF-only was meant to prevent this adverse effect.

> On the other hand, Eli, you surely know more about Windows than
> any of us.  Do you think Windows tools and programs would care if the
> other files are CRLF or LF?  I tend to doubt it myself, but what do I know.

No, I don't think it will cause any trouble.  But I' like you, think
that it's safest to make the minimum required changes, and this change
is not needed for HTML, say.

> For myself, I'm happy to output everything with LF.
> 
>     Also, what about any temporary files that texi2any produces:
>     could this interfere with them somehow?
> 
> I can't think of any temp files off the top of my head, or easily find
> such with grep.  Anyway, if all the hundreds of tests pass with the
> change, I think it's safe enough to proceed.

Then maybe we should indeed proceed, and let users complain, if there
are problems.



reply via email to

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