all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
To: 36657@debbugs.gnu.org
Subject: bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's
Date: Mon, 15 Jul 2019 04:09:52 +0800	[thread overview]
Message-ID: <87h87ofkdr.5.fsf@jidanni.org> (raw)

Gentlemen, it's terrible.

All CRLF XML files will end up looking like this in your buffer,

$ cat -v l.gpx
<?xml version="1.0" encoding="utf-8"?>^M
<a></a>^M

See those ^M's?
That's because that
   <?xml version="1.0" encoding="utf-8"?>
line causes emacs to screw up recognizing
the CRLFs! See (info "(emacs) Coding Systems").
emacs-version "26.1"

See also bug#20623.

OK I tried it on a CRLF file like
<?xml version="1.0"?>
<a></a>

So it is indeed the UTF-8 it is unhappy about.

Workaround:
Don't use UTF-8, use plain ASCII when using XML in emacs. Great.





             reply	other threads:[~2019-07-14 20:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-14 20:09 積丹尼 Dan Jacobson [this message]
2019-07-14 22:02 ` bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's Benjamin Riefenstahl
2019-07-15  5:19   ` 積丹尼 Dan Jacobson
2019-07-17  9:56     ` Basil L. Contovounesios
2019-07-18  6:01       ` Eli Zaretskii
2019-07-17  9:51 ` Basil L. Contovounesios
2019-07-19  0:55   ` 積丹尼 Dan Jacobson

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=87h87ofkdr.5.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=36657@debbugs.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.