|
Ha, thx for pointing that out! Very helpful.
But… it gives different results, but they are still unexpected. There are discrepancies between platforms in how text is treated. After adding the “B” when writing, these are the results;
Mac:
----
Windows:
--------
So with the “*l” option on Windows it converts line endings, but on Mac it does not, Mac retains the CRs, which seems weird.
And with “*L” on Windows it does not actually “retain" the line endings, because it only retains them AFTER conversion.
I would have expected either of the following to be consistent across platforms, or both of them to make them safer:
1) on Mac, to also convert “CRLF” to “LF”, when using “*l”
2) on Windows, to NOT convert “CRLF” to “LF” when using “*L”
Thijs
|