all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: A Soare <alinsoar@voila.fr>
To: emacs-devel@gnu.org
Subject: Converting end of lines from CRLF to LF
Date: Sun, 13 Dec 2009 18:13:07 +0000 (UTC)	[thread overview]
Message-ID: <loom.20091213T185621-859@post.gmane.org> (raw)

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





             reply	other threads:[~2009-12-13 18:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-13 18:13 A Soare [this message]
2009-12-13 19:04 ` Converting end of lines from CRLF to LF Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2009-12-13 22:34 A. Soare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20091213T185621-859@post.gmane.org \
    --to=alinsoar@voila.fr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.