all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string
@ 2020-04-09  8:26 Kazuhiro Ito
  2020-04-09  9:22 ` Eli Zaretskii
  2020-04-16 10:44 ` Mattias Engdegård
  0 siblings, 2 replies; 4+ messages in thread
From: Kazuhiro Ito @ 2020-04-09  8:26 UTC (permalink / raw)
  To: 40519

Since commit 4ed39549e3f9dbfeb2aea0e2674a7701dbc0e5ea (Avoid expensive
recoding for ASCII identity cases (bug#40407)), below code returns
unexpected result.

(let ((string "ABCD\x0d\nEFG")
      inhibit-eol-conversion)
  (decode-coding-string string 'raw-text-dos))

-> "ABCD^M
EFG"

expected result is 
-> "ABCD
EFG"

It seems that the committed code does not take care of EOL conversion.

-- 
Kazuhiro Ito





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

end of thread, other threads:[~2020-04-16 10:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-09  8:26 bug#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string Kazuhiro Ito
2020-04-09  9:22 ` Eli Zaretskii
2020-04-09 10:48   ` Kazuhiro Ito
2020-04-16 10:44 ` Mattias Engdegård

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.