[Top][All Lists]

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

Re: decode_eol and inconsistent EOL

From: Andrew Choi
Subject: Re: decode_eol and inconsistent EOL
Date: Sun, 28 Apr 2002 23:37:54 -0600

> On Sun, 28 Apr 2002, Richard Stallman wrote:
> >     Are we sure that Mac users (where a single CR is the EOL
> >     character) won't object this?
> > 
> > Is there a reason why a Mac file would have LFs after some of the CRs?
> No more than a Windows file would have a stray CR, I guess.
> Basically, we are talking about two possible classes of cases here:
>   - binary files
>   - text files produced by broken programs
> In the first case, what Emacs does now is the Right Thing.
> In the second case, which was Stephen's problem, a broken program can 
> produce stray LFs on a Mac as much as it can produce a stray CR on 
> Windows.

I agree.  Not that I have actually seen any program on the Mac that
does this.  But since we are talking about pathological cases,
anything may happen.

Of course Mac OS X uses CR's as EOL's, so the problem is the same
there as for other Unix systems.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]