--- Begin Message ---
Subject: |
All CRLF XML files are not recognized as CRLF, so flood with ^M's |
Date: |
Mon, 15 Jul 2019 04:09:52 +0800 |
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.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's |
Date: |
Thu, 18 Jul 2019 09:01:32 +0300 |
> From: "Basil L. Contovounesios" <address@hidden>
> Date: Wed, 17 Jul 2019 10:56:22 +0100
> Cc: address@hidden
>
> 積丹尼 Dan Jacobson <address@hidden> writes:
>
> > Also please test when there is no CRLF at all on the final line.
>
> Works fine either way for me:
>
> In GNU Emacs 26.2.90 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll
> bars)
> of 2019-07-16 built on thunk
Indeed, this has been fixed already. Closing.
--- End Message ---