Subject: bug#40519: closed (Re: bug#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 16 Apr 2020 10:45:02 +0000

Your bug report

#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string

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].

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

Subject: Re: bug#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string
From: Mattias Engdegård <[email-masked]>
To: [email-masked]
Cc: Kazuhiro Ito <[email-masked]>
Date: Thu, 16 Apr 2020 12:44:06 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

This was fixed as part of bug#40407 (e18c24b35a).

Subject: 28.0.50; decode-coding-string fails EOL conversion of ASCII string
From: Kazuhiro Ito <[email-masked]>
To: [email-masked]
Date: Thu, 09 Apr 2020 17:26:05 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

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