From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: A Soare Newsgroups: gmane.emacs.devel Subject: Converting end of lines from CRLF to LF Date: Sun, 13 Dec 2009 18:13:07 +0000 (UTC) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1260728032 20642 80.91.229.12 (13 Dec 2009 18:13:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Dec 2009 18:13:52 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 13 19:13:45 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NJswy-00074O-0W for ged-emacs-devel@m.gmane.org; Sun, 13 Dec 2009 19:13:44 +0100 Original-Received: from localhost ([127.0.0.1]:40811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJswx-0006v7-Qu for ged-emacs-devel@m.gmane.org; Sun, 13 Dec 2009 13:13:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NJswt-0006ul-5q for emacs-devel@gnu.org; Sun, 13 Dec 2009 13:13:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NJswo-0006u8-5e for emacs-devel@gnu.org; Sun, 13 Dec 2009 13:13:38 -0500 Original-Received: from [199.232.76.173] (port=45353 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NJswo-0006u5-0l for emacs-devel@gnu.org; Sun, 13 Dec 2009 13:13:34 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:43916) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJswn-0003XU-Qs for emacs-devel@gnu.org; Sun, 13 Dec 2009 13:13:34 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NJswl-00071l-15 for emacs-devel@gnu.org; Sun, 13 Dec 2009 19:13:31 +0100 Original-Received: from mobile-3G-dyn-CJ-119-42.zappmobile.ro ([mobile-3G-dyn-CJ-119-42.zappmobile.ro]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Dec 2009 19:13:31 +0100 Original-Received: from alinsoar by mobile-3G-dyn-CJ-119-42.zappmobile.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 13 Dec 2009 19:13:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 93.112.119.42 (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Ant.com Toolbar 1.5 Firefox/3.5.5) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:118591 Archived-At: I had access to cvs for windows. I downloaded the sources of emacs, and I tried to apply a patch on. My surprise was to see that absolutely all the patches failed: hunk failed. I debugged patch more than 20 hours to understand how it works. Finally, I did understand: it failed to match the context lines in the destination files, as the end of line did not match. I tried to convert all the sources of emacs that were downloaded using a cvs on Windows, so the lines finish in CRLF. I tried to convert all the sources using a script like that for i in `find`; do if test -d $if; then mkdir -p $i; else tr -d "\015" <$i >/e/$i;done I created the new directory structure, but during dumping emacs, temacs returns error in loading internationalization. That means that tr deleted the character 0xd somewhere inside the file, apart from end of line. It is impossible to detect in which file it deleted something tha it should have not deleted. Any idea about how to make this conversion? Alin