emacs-devel
[Top][All Lists]
Advanced

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

Re: EOL: unix/dos/mac


From: Alan Mackenzie
Subject: Re: EOL: unix/dos/mac
Date: Tue, 26 Mar 2013 14:02:47 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Hi, Stephen.

On Tue, Mar 26, 2013 at 10:42:38AM +0900, Stephen J. Turnbull wrote:
> Stefan Monnier writes:

>  > BTW, in this same area, it would be good to detect and indicate
>  > prominently "Unix with some CRLFs", also known as "mixed-line-ending",
>  > which is often misunderstood as "my Emacs fails to recognize my CRLF
>  > file".

> Unicode doesn't care, you know: it considers all ASCII line breaks and
> terminators to be the same thing (NEW LINE FUNCTION).  I haven't read
> that part of the standard in a long time, but IIRC, although many
> people interpolate "according to platform", Unicode doesn't care about
> that, it just says "all of these sequences when encountered in text
> purporting to conform to this standard should be treated in the same
> way."  Emacsen should do the same.

This is a little confusing to poor old me.  ASCII doesn't care about line
breaks either; only particular use cases care.  If you write a script
(whether bash, sed, ....) on a *nix system and it has CRLF line ends, it
will fail (with an obscure error message) regardless of whether that
script is nominally in UTF-8 or ASCII or whatever.

In what sense does Unicode "not care"?

> Steve



reply via email to

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