GNU bug report logs - #40519
28.0.50; decode-coding-string fails EOL conversion of ASCII string

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Thu, 9 Apr 2020 08:27:02 UTC

Severity: normal

Found in version 28.0.50

Done: Mattias Engdegård <mattiase <at> acm.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Mattias Engdegård <mattiase <at> acm.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#40519: closed (28.0.50; decode-coding-string fails EOL
 conversion of ASCII string)
Date: Thu, 16 Apr 2020 10:45:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 16 Apr 2020 12:44:06 +0200
with message-id <F3F92C6E-DCDF-4D08-A6AB-5024189702E3 <at> acm.org>
and subject line Re: bug#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string
has caused the debbugs.gnu.org bug report #40519,
regarding 28.0.50; decode-coding-string fails EOL conversion of ASCII string
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
40519: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40519
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; decode-coding-string fails EOL conversion of ASCII string
Date: Thu, 09 Apr 2020 17:26:05 +0900
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


[Message part 3 (message/rfc822, inline)]
From: Mattias Engdegård <mattiase <at> acm.org>
To: 40519-done <at> debbugs.gnu.org
Cc: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
Subject: Re: bug#40519: 28.0.50; decode-coding-string fails EOL conversion of
 ASCII string
Date: Thu, 16 Apr 2020 12:44:06 +0200
This was fixed as part of bug#40407 (e18c24b35a).



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

Previous Next


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