bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Eli Zaretskii
Subject: bug#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string
Date: Thu, 09 Apr 2020 12:22:57 +0300

> Date: Thu, 09 Apr 2020 17:26:05 +0900
> From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
> 
> 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.

Thanks, I hope I fixed this now.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]