emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#36657: closed (All CRLF XML files are not recogniz


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#36657: closed (All CRLF XML files are not recognized as CRLF, so flood with ^M's)
Date: Thu, 18 Jul 2019 06:02:02 +0000

Your message dated Thu, 18 Jul 2019 09:01:32 +0300
with message-id <address@hidden>
and subject line Re: bug#36657: All CRLF XML files are not recognized as CRLF, 
so flood with ^M's
has caused the debbugs.gnu.org bug report #36657,
regarding All CRLF XML files are not recognized as CRLF, so flood with ^M's
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
36657: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36657
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]