Subject: bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's

From: "Basil L. Contovounesios" <[email-masked]>
Date: Wed, 17 Jul 2019 10:51:59 +0100

積丹尼 Dan Jacobson <[email-masked]> writes:

> 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").

This looks like a duplicate of bug#34704[1], which was fixed in Emacs
26.2.  Can you confirm that it works for you in 26.2?

[1]: https://debbugs.gnu.org/34704

> emacs-version "26.1"

This is not enough information for debugging issues in general.  Please
always report bugs using M-x report-emacs-bug, or copy the information
collected by report-emacs-bug into your bug report.
          
> See also bug#20623.

That bug is also marked as fixed in Emacs 26.2.

Thanks,

-- 
Basil