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

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 18 Jul 2019 06:02:02 +0000

Your bug report

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

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
36657: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36657
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's
From: Eli Zaretskii <[email-masked]>
To: "Basil L. Contovounesios" <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Thu, 18 Jul 2019 09:01:32 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: "Basil L. Contovounesios" <[email-masked]>
> Date: Wed, 17 Jul 2019 10:56:22 +0100
> Cc: [email-masked]
> 
> 積丹尼 Dan Jacobson <[email-masked]> 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.

Subject: All CRLF XML files are not recognized as CRLF, so flood with ^M's
From: 積丹尼 Dan Jacobson <[email-masked]>
To: [email-masked]
Date: Mon, 15 Jul 2019 04:09:52 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

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.