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

RE: [MiNT] Here documents and CRLF



> From: Andreas Schwab [mailto:schwab@issan.cs.uni-dortmund.de]
> Sent: Friday, June 18, 1999 12:05 PM
> To: reschke@muenster.de
> Cc: Andreas Schwab; Guido Flohr; MiNT mailing list
> Subject: Re: [MiNT] Here documents and CRLF
>
>
> "Julian Reschke" <reschke@muenster.de> writes:
>
> |> Yes, but "implementation" refers to the whole system, not just
> to one out of
> |> many libraries. And the native text format under TOS *is*
> CR/LF, so it's not
> |> a POSIX system.
>
> No.  If you say UNIXMODE=b then the text format is the same as the binary
> format.  If you cannot guarantee that then your system is broken, and you
> must remove 'b' from UNIXMODE.

Yes.

And as in practice it is not possible to guarantee this, UNIXMODE can't be
set to "b" in most cases.

And because of that all software and libraries should be written such as
they are independant of the UNIXMODE setting, which in turn means that you
*have* to add the "b" to the fopen parameters in case you really want a
binary stream.

> |> Now of course the owner of the MiNT library can decide to consider his
> |> system to be a POSIX system. But then this breaks compatibility with
> |> existing text files. Is this what the users of the MiNT
> library really want?
>
> Which compatibility?  All files on a POSIX system are in text == binary
> format.  It's up to you to cope with that.

This is fine for systems which actually *are* POSIX systems. The Atari in
general isn't, even if you install MiNT.

> In a nutshell: use UNIXMODE=b only if *all* your files are in POSIX
> format.

Yes, so don't use it, and write your software (and the libraries) in a way
that it works OK without it.