Michael Soyka wrote:
> > > Using Make_ming.mak, the "tinytests" collection of build tests will fail if
> > > the associated .ok file has Windows line endings. This happens because the
> > > test.out file is explicitly set to have unix/linux line endings but the .ok
> > > file has not been converted and so "diff" concludes they're different. I
> > > have attached a patch which converts the .ok file and cleans-up.
> > >
> > > This was introduced by patch v8.2.1439 which removed the "fixff" target. I
> > > noticed it because I use git-for-windows and its default is to use Windows
> > > line endings in the workspace.
> > >
> > > I suspect the same problem occurs in Make_dos.mak but I have no way of
> > > verifying that.
> >
> > I had been wondering if "fixff" would still be needed. The very old
> > reason was that after unpacking the source tar archive some versions of
> > tar would change the line endings. So git-for-windows does the same
> > thing? Or should we somehow set the git metadata so that it doesn't
> > change the line endings?
>
This has changed a few times in the early days, and settled down on
something that worked. I suspect going back to that situation might be
best, even when this involves some scripting to do conversions.
Part of the problem is that originally files were distributed for Unix
and for DOS/Windows separately, with the latter in CR/LF format so they
could be handled by other tools. But some users unpacked the Unix files
on Windows and expect them to work.
Now with version control I don't really know what you end up with.
Converting from LF to CR/LF is then the simplest, and the tests rely on
the .in and .ok files to use CF/LF.
Doing this the other way around is tricky and is not reliable.
Making the tests work with either format is also tricky, since they are
Normal mode commands.
If you think your changes work, please create a pull request, so it gets
tested with different setups by CI.
--
LARGE MAN: Who's that then?
CART DRIVER: (Grudgingly) I dunno, Must be a king.
LARGE MAN: Why?
CART DRIVER: He hasn't got shit all over him.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD