Well, maybe I don't understand your use case, but if you do not know what is inside, why not save it as is, binary even, not doing any conversions ?
> On 26 May 2016, at 14:06, Peter Uhn��k <i.uhnak@gmail.com> wrote:
>
>
>
> On Thu, May 26, 2016 at 1:40 PM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
>
> > On 26 May 2016, at 13:29, Peter Uhn��k <i.uhnak@gmail.com> wrote:
> >
> > >�� In general I would say that you should write either something platform specific or you write something specific
> >
> > Except that I cannot do that because the system doesn't support neither.
> > And the fact that the default line ending is CR is just bullshit��� it's 2016, not 1986.
>
> Yes, that CR is from days long gone ;-)
>
> > or #cr #lf or #crlf as needed, and/or make that last one a parameter (OSPlatform current lineEnding).
>
> I am piping unknown content into the file, thus the need for `lineEndConvention:` and the reason of this entire thread. So as I said, the system doesn't support it.
> I know I can use #lf or whatnot, but I am not creating the content, I am saving it.
>
> Peter