From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: EOL: unix/dos/mac Date: Tue, 26 Mar 2013 14:02:47 +0000 Message-ID: <20130326140247.GB4179@acm.acm> References: <87ip4fc4xd.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1364307060 4729 80.91.229.3 (26 Mar 2013 14:11:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Mar 2013 14:11:00 +0000 (UTC) Cc: Per =?iso-8859-1?Q?Starb=E4ck?= , Stefan Monnier , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 26 15:11:22 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UKUaf-0006NC-63 for ged-emacs-devel@m.gmane.org; Tue, 26 Mar 2013 15:11:05 +0100 Original-Received: from localhost ([::1]:49315 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKUaH-0004fL-0r for ged-emacs-devel@m.gmane.org; Tue, 26 Mar 2013 10:10:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKUTE-0002fC-55 for emacs-devel@gnu.org; Tue, 26 Mar 2013 10:03:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKUT9-00007E-GN for emacs-devel@gnu.org; Tue, 26 Mar 2013 10:03:24 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:55111 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKUT9-00006p-7m for emacs-devel@gnu.org; Tue, 26 Mar 2013 10:03:19 -0400 Original-Received: (qmail 24021 invoked by uid 3782); 26 Mar 2013 14:03:17 -0000 Original-Received: from acm.muc.de (pD951ABC3.dip.t-dialin.net [217.81.171.195]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 26 Mar 2013 15:03:08 +0100 Original-Received: (qmail 4274 invoked by uid 1000); 26 Mar 2013 14:02:47 -0000 Content-Disposition: inline In-Reply-To: <87ip4fc4xd.fsf@uwakimon.sk.tsukuba.ac.jp> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158214 Archived-At: 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