GNU bug report logs - #36657
All CRLF XML files are not recognized as CRLF, so flood with ^M's

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sun, 14 Jul 2019 20:23:02 UTC

Severity: wishlist

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36657 in the body.
You can then email your comments to 36657 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#36657; Package emacs. (Sun, 14 Jul 2019 20:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 14 Jul 2019 20:23:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36657; Package emacs. (Sun, 14 Jul 2019 22:03:02 GMT) Full text and rfc822 format available.

Message #8 received at 36657 <at> debbugs.gnu.org (full text, mbox):

From: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 36657 <at> debbugs.gnu.org
Subject: Re: bug#36657: All CRLF XML files are not recognized as CRLF,
 so flood with ^M's
Date: Mon, 15 Jul 2019 00:02:30 +0200
積丹尼 Dan Jacobson writes:
> 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.

Actually UTF-8 is the default for XML, not ASCII.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36657; Package emacs. (Mon, 15 Jul 2019 05:20:02 GMT) Full text and rfc822 format available.

Message #11 received at 36657 <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: 36657 <at> debbugs.gnu.org
Subject: Re: bug#36657: All CRLF XML files are not recognized as CRLF,
 so flood with ^M's
Date: Mon, 15 Jul 2019 13:19:30 +0800
Also please test when there is no CRLF at all on the final line.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36657; Package emacs. (Wed, 17 Jul 2019 09:53:01 GMT) Full text and rfc822 format available.

Message #14 received at 36657 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 36657 <at> debbugs.gnu.org
Subject: Re: bug#36657: All CRLF XML files are not recognized as CRLF, so
 flood with ^M's
Date: Wed, 17 Jul 2019 10:51:59 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36657; Package emacs. (Wed, 17 Jul 2019 09:57:02 GMT) Full text and rfc822 format available.

Message #17 received at 36657 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 36657 <at> debbugs.gnu.org
Subject: Re: bug#36657: All CRLF XML files are not recognized as CRLF, so
 flood with ^M's
Date: Wed, 17 Jul 2019 10:56:22 +0100
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> 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
Repository revision: b2fde4b5e8e91aa57313af09465091303eeb7d39
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description:	Debian GNU/Linux bullseye/sid

Configured using:
 'configure 'CC=ccache gcc' 'CFLAGS=-O0 -g3 -ggdb -gdwarf-4'
 --config-cache --prefix=/home/blc/.local --program-suffix=26
 --enable-checking=yes,glyphs --enable-check-lisp-object-type
 --with-mailutils --with-x-toolkit=lucid --with-modules
 --with-file-notification=yes --with-x'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS
GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT
ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE XIM MODULES THREADS LIBSYSTEMD
LCMS2

Important settings:
  value of $LANG: en_IE.UTF-8
  locale-coding-system: utf-8-unix

-- 
Basil




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 18 Jul 2019 06:02:02 GMT) Full text and rfc822 format available.

Notification sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
bug acknowledged by developer. (Thu, 18 Jul 2019 06:02:02 GMT) Full text and rfc822 format available.

Message #22 received at 36657-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 36657-done <at> debbugs.gnu.org, jidanni <at> jidanni.org
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" <contovob <at> tcd.ie>
> Date: Wed, 17 Jul 2019 10:56:22 +0100
> Cc: 36657 <at> debbugs.gnu.org
> 
> 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#36657; Package emacs. (Fri, 19 Jul 2019 01:16:02 GMT) Full text and rfc822 format available.

Message #25 received at 36657-done <at> debbugs.gnu.org (full text, mbox):

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>
Cc: 36657-done <at> debbugs.gnu.org
Subject: Re: bug#36657: All CRLF XML files are not recognized as CRLF,
 so flood with ^M's
Date: Fri, 19 Jul 2019 08:55:21 +0800
BLC> 26.2.  Can you confirm that it works for you in 26.2?
OK, I'll trust you. Closing.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 16 Aug 2019 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 308 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.