This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: Java -vs- Jacks


>> Actually CRCRLF is two line terminators.  This distinction is only a
>> pedantic one though.

Alex> How about LRM 3.4 which says:

Alex>   Lines are terminated by the ASCII characters CR, or LF, or CR LF. The
Alex>   two characters CR immediately followed by LF are counted as one line
Alex>   terminator, not two.

Yeah, that's why CR CR LF is two line separators.

The first CR is one.
Then CR LF is the second.

That paragraph doesn't mention `CR CR' or `CR CR LF' as being line
terminators.  The "two characters" in the second sentence refer to the
CR and the LF, not two CRs and an LF.

Tom

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]