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

RE: [MiNT] Here documents and CRLF



> From: owner-mint@fishpool.com [mailto:owner-mint@fishpool.com]On Behalf
> Of Andreas Schwab
> Sent: Friday, June 18, 1999 11:00 AM
> To: reschke@muenster.de
> Cc: Guido Flohr; MiNT mailing list
> Subject: Re: [MiNT] Here documents and CRLF
>
>
> "Julian Reschke" <reschke@muenster.de> writes:
>
> |> This is certainly wrong. ANSI-C is a proper subset of POSIX,
> and ANSI-C says
> |> you *must* use "b" to get a binary string.
>
> The C standard never uses the term "must".  It says "shall, undefined if
> not".  POSIX gives it a defined meaning, which is explicitly allowed by

Which is a *must*.

> ANSI.  This is what makes POSIX a proper superset of ANSI.
>
> Footnote from C9x:
>
>        209An  implementation  need  not  distinguish  between  text
>           streams and binary streams.  In such  an  implementation,
>           there need be no new-line characters in a text stream nor
>           any limit to the length of a line.

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.

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?

jr
>