From unknown Thu Sep 11 10:04:37 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40519 <40519@debbugs.gnu.org> To: bug#40519 <40519@debbugs.gnu.org> Subject: Status: 28.0.50; decode-coding-string fails EOL conversion of ASCII string Reply-To: bug#40519 <40519@debbugs.gnu.org> Date: Thu, 11 Sep 2025 17:04:37 +0000 retitle 40519 28.0.50; decode-coding-string fails EOL conversion of ASCII s= tring reassign 40519 emacs submitter 40519 Kazuhiro Ito severity 40519 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 09 04:26:21 2020 Received: (at submit) by debbugs.gnu.org; 9 Apr 2020 08:26:22 +0000 Received: from localhost ([127.0.0.1]:53198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMSVx-000608-KN for submit@debbugs.gnu.org; Thu, 09 Apr 2020 04:26:21 -0400 Received: from lists.gnu.org ([209.51.188.17]:37344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMSVv-000600-Se for submit@debbugs.gnu.org; Thu, 09 Apr 2020 04:26:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48771) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMSVu-0007pX-R1 for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 04:26:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMSVs-0003Bv-JM for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 04:26:17 -0400 Received: from snd00005.auone-net.jp ([111.86.247.5]:59169 helo=dmta0009.auone-net.jp) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jMSVs-0003BB-4L for bug-gnu-emacs@gnu.org; Thu, 09 Apr 2020 04:26:16 -0400 Received: from kzhr.d1.dion.ne.jp by dmta0009.auone-net.jp with ESMTP id <20200409082610270.CCBN.46504.kzhr.d1.dion.ne.jp@dmta0009.auone-net.jp>; Thu, 9 Apr 2020 17:26:10 +0900 Date: Thu, 09 Apr 2020 17:26:05 +0900 Message-ID: <86d08hkqua.wl--xmue@d1.dion.ne.jp> From: Kazuhiro Ito To: bug-gnu-emacs@gnu.org Subject: 28.0.50; decode-coding-string fails EOL conversion of ASCII string User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/28.0 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) X-Hashcash: 1:20:200409:bug-gnu-emacs@gnu.org::PbqXCiW4c8GB46Vz:00000000000000000000000000000000000000003Nw6 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 111.86.247.5 X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 09 05:23:24 2020 Received: (at 40519) by debbugs.gnu.org; 9 Apr 2020 09:23:24 +0000 Received: from localhost ([127.0.0.1]:53241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMTPA-0007SL-HV for submit@debbugs.gnu.org; Thu, 09 Apr 2020 05:23:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42265) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMTP9-0007S7-1B for 40519@debbugs.gnu.org; Thu, 09 Apr 2020 05:23:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jMTP2-0001xP-Rx; Thu, 09 Apr 2020 05:23:17 -0400 Received: from [176.228.60.248] (port=4018 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jMTP1-0007Hi-VA; Thu, 09 Apr 2020 05:23:16 -0400 Date: Thu, 09 Apr 2020 12:22:57 +0300 Message-Id: <83r1wxnhce.fsf@gnu.org> From: Eli Zaretskii To: Kazuhiro Ito In-Reply-To: <86d08hkqua.wl--xmue@d1.dion.ne.jp> (message from Kazuhiro Ito on Thu, 09 Apr 2020 17:26:05 +0900) Subject: Re: bug#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string References: <86d08hkqua.wl--xmue@d1.dion.ne.jp> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40519 Cc: 40519@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Date: Thu, 09 Apr 2020 17:26:05 +0900 > From: Kazuhiro Ito > > 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 09 06:48:48 2020 Received: (at 40519) by debbugs.gnu.org; 9 Apr 2020 10:48:48 +0000 Received: from localhost ([127.0.0.1]:53294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMUjn-0001C7-NB for submit@debbugs.gnu.org; Thu, 09 Apr 2020 06:48:48 -0400 Received: from snd00014.auone-net.jp ([111.86.247.14]:51558 helo=dmta0008.auone-net.jp) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMUji-0001Bv-0p for 40519@debbugs.gnu.org; Thu, 09 Apr 2020 06:48:44 -0400 Received: from kzhr.d1.dion.ne.jp by dmta0008.auone-net.jp with ESMTP id <20200409104838713.CKRN.12092.kzhr.d1.dion.ne.jp@dmta0008.auone-net.jp>; Thu, 9 Apr 2020 19:48:38 +0900 Date: Thu, 09 Apr 2020 19:48:36 +0900 Message-ID: <86a73lkk8r.wl--xmue@d1.dion.ne.jp> From: Kazuhiro Ito To: Eli Zaretskii Subject: Re: bug#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string In-Reply-To: <83r1wxnhce.fsf@gnu.org> References: <86d08hkqua.wl--xmue@d1.dion.ne.jp> <83r1wxnhce.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/28.0 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 40519 Cc: 40519@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > > 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. Thank you. But there is still a problem in encode-coding-string. (let ((string "ABCD\nEFG") inhibit-eol-conversion) (list (encode-coding-string string 'raw-text-dos) (encode-coding-string string 'raw-text-mac))) -> ("ABCD EFG" "ABCD EFG") -- Kazuhiro Ito From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 16 06:44:21 2020 Received: (at 40519-done) by debbugs.gnu.org; 16 Apr 2020 10:44:21 +0000 Received: from localhost ([127.0.0.1]:37600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP20L-0006KQ-Al for submit@debbugs.gnu.org; Thu, 16 Apr 2020 06:44:21 -0400 Received: from mail1471c50.megamailservers.eu ([91.136.14.71]:58536 helo=mail102c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jP20J-0006KB-Qq for 40519-done@debbugs.gnu.org; Thu, 16 Apr 2020 06:44:20 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1587033850; bh=G2kPBDLX8Qx32QLwPxA4Xc8XJOL/0w6HQtsbzlRxUD8=; h=From:Subject:Date:Cc:To:From; b=sgRWCPfUcqJHzwxqgGOp150e/4tA8DHQjgPZh59xflfC5pryuV6mb43bUf0Oq9nyx BY7beXxiFkqtXjN+mDIdnI6CdAjzfqNbbbFeEQTYSUpCIrLnSRKPkF/xJ16f6a0L9V Y0vE5crbOocJ+B3lcpvnmU47Y+jVnb9BN2d1GLLo= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 03GAi75E025875; Thu, 16 Apr 2020 10:44:08 +0000 From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Re: bug#40519: 28.0.50; decode-coding-string fails EOL conversion of ASCII string Message-Id: Date: Thu, 16 Apr 2020 12:44:06 +0200 To: 40519-done@debbugs.gnu.org X-Mailer: Apple Mail (2.3445.104.14) X-CTCH-RefID: str=0001.0A782F16.5E9836CB.0074, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=S52nP7kP c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=B0RBfLsYr_sJB934kA0A:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 40519-done Cc: Kazuhiro Ito X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) This was fixed as part of bug#40407 (e18c24b35a). From unknown Thu Sep 11 10:04:37 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 14 May 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator