all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's
@ 2019-07-14 20:09 積丹尼 Dan Jacobson
  2019-07-14 22:02 ` Benjamin Riefenstahl
  2019-07-17  9:51 ` Basil L. Contovounesios
  0 siblings, 2 replies; 7+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-07-14 20:09 UTC (permalink / raw)
  To: 36657

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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's
  2019-07-14 20:09 bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's 積丹尼 Dan Jacobson
@ 2019-07-14 22:02 ` Benjamin Riefenstahl
  2019-07-15  5:19   ` 積丹尼 Dan Jacobson
  2019-07-17  9:51 ` Basil L. Contovounesios
  1 sibling, 1 reply; 7+ messages in thread
From: Benjamin Riefenstahl @ 2019-07-14 22:02 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 36657

積丹尼 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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's
  2019-07-14 22:02 ` Benjamin Riefenstahl
@ 2019-07-15  5:19   ` 積丹尼 Dan Jacobson
  2019-07-17  9:56     ` Basil L. Contovounesios
  0 siblings, 1 reply; 7+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-07-15  5:19 UTC (permalink / raw)
  To: 36657

Also please test when there is no CRLF at all on the final line.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's
  2019-07-14 20:09 bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's 積丹尼 Dan Jacobson
  2019-07-14 22:02 ` Benjamin Riefenstahl
@ 2019-07-17  9:51 ` Basil L. Contovounesios
  2019-07-19  0:55   ` 積丹尼 Dan Jacobson
  1 sibling, 1 reply; 7+ messages in thread
From: Basil L. Contovounesios @ 2019-07-17  9:51 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 36657

積丹尼 Dan Jacobson <jidanni@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's
  2019-07-15  5:19   ` 積丹尼 Dan Jacobson
@ 2019-07-17  9:56     ` Basil L. Contovounesios
  2019-07-18  6:01       ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Basil L. Contovounesios @ 2019-07-17  9:56 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 36657

積丹尼 Dan Jacobson <jidanni@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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's
  2019-07-17  9:56     ` Basil L. Contovounesios
@ 2019-07-18  6:01       ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2019-07-18  6:01 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 36657-done, jidanni

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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's
  2019-07-17  9:51 ` Basil L. Contovounesios
@ 2019-07-19  0:55   ` 積丹尼 Dan Jacobson
  0 siblings, 0 replies; 7+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-07-19  0:55 UTC (permalink / raw)
  To: Basil L. Contovounesios; +Cc: 36657-done

BLC> 26.2.  Can you confirm that it works for you in 26.2?
OK, I'll trust you. Closing.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-07-19  0:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-14 20:09 bug#36657: All CRLF XML files are not recognized as CRLF, so flood with ^M's 積丹尼 Dan Jacobson
2019-07-14 22:02 ` Benjamin Riefenstahl
2019-07-15  5:19   ` 積丹尼 Dan Jacobson
2019-07-17  9:56     ` Basil L. Contovounesios
2019-07-18  6:01       ` Eli Zaretskii
2019-07-17  9:51 ` Basil L. Contovounesios
2019-07-19  0:55   ` 積丹尼 Dan Jacobson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.