From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: problem with system_eol_type Date: Mon, 31 Jul 2006 18:16:47 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1154384276 8446 80.91.229.2 (31 Jul 2006 22:17:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jul 2006 22:17:56 +0000 (UTC) Cc: mule-ja@m17n.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 01 00:17:48 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G7g52-0006Qq-Mn for ged-emacs-devel@m.gmane.org; Tue, 01 Aug 2006 00:17:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7g52-0008Bv-14 for ged-emacs-devel@m.gmane.org; Mon, 31 Jul 2006 18:17:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G7g48-0007sa-MB for emacs-devel@gnu.org; Mon, 31 Jul 2006 18:16:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G7g48-0007sE-1y for emacs-devel@gnu.org; Mon, 31 Jul 2006 18:16:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G7g47-0007rz-Qv for emacs-devel@gnu.org; Mon, 31 Jul 2006 18:16:47 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G7g6s-0006JU-MQ for emacs-devel@gnu.org; Mon, 31 Jul 2006 18:19:38 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1G7g47-00074N-5S; Mon, 31 Jul 2006 18:16:47 -0400 Original-To: Kenichi Handa In-reply-to: (message from Kenichi Handa on Mon, 31 Jul 2006 15:04:59 +0900) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57883 Archived-At: Previously, when a coding system without explicit eol-type (e.g. iso-latin-1) was specified for encoding, Unix-like eol-type is selected on any platform. The change I made was to use an eol-type set to system_eol_type (CRLF on Windows, LF otherwise) in such a case. To me, that change was just a bug fix. This is clearly The Right Thing, at the user level. But, the bug-reports say that there are many codes that assumes the previous behaviour, and some of them now don't work well on Windows. Thus, what's good at the UI level is not good at the API level. Programs would usually like to get uniform results. I see two possible approaches to this: 1. Fix those programs to specify `-unix'. That way, they should get LF eol behavior in all Emacs versions on all systems. 2. Take out your old change, and implement something at the UI level, perhaps in a function that reads a coding system name. #1 is clearly easier. Is there any strong argument against it? Is there a way