From bojohan+mail@dd.chalmers.se Fri Sep 26 13:34:26 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 26 Sep 2008 20:34:26 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8QKYMAa032395 for ; Fri, 26 Sep 2008 13:34:24 -0700 Received: from mail.gnu.org ([199.232.76.166]:45525 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KjJz4-00077U-6l for emacs-pretest-bug@gnu.org; Fri, 26 Sep 2008 16:32:14 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KjK14-0005Mk-Ls for emacs-pretest-bug@gnu.org; Fri, 26 Sep 2008 16:34:21 -0400 Received: from atum.ita.chalmers.se ([129.16.4.148]:61030) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KjK14-0005MA-B2 for emacs-pretest-bug@gnu.org; Fri, 26 Sep 2008 16:34:18 -0400 Received: from remote5.student.chalmers.se (remote5.student.chalmers.se [129.16.29.83]) by atum.ita.chalmers.se (Postfix) with ESMTP id 5C4DB838B for ; Fri, 26 Sep 2008 22:34:12 +0200 (CEST) Received: by remote5.student.chalmers.se (Postfix, from userid 61540) id 49A222005C; Fri, 26 Sep 2008 22:34:12 +0200 (CEST) From: bojohan+mail@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) To: emacs-pretest-bug@gnu.org Subject: 23.0.60; DOS eol decoding bug Date: Fri, 26 Sep 2008 22:34:12 +0200 Message-ID: User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) Decoding a chunk of DOS text that ends in \r results in an extra chunk of garbage. (progn (with-temp-file "/tmp/bar" (insert-char ?x 10) (insert "\r")) (with-temp-buffer (let ((coding-system-for-read 'raw-text-dos)) (insert-file-contents "/tmp/bar") (buffer-size)))) =3D> 21 (expected result 11) I think the problem was introduced with this change: 2008-03-02 Kenichi Handa * coding.c (decode_coding_utf_8): When eol-type of CODING is `dos', don't decode '\r' if that is the last in the source. (decode_coding_utf_16, decode_coding_emacs_mule) (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5) (decode_coding_raw_text, decode_coding_charset): Likewise. (produce_chars): Don't decode EOL here. Use EMACS_INT. --=20 Johan Bockg=C3=A5rd From jasonrumney@gmail.com Sat Dec 20 00:03:29 2008 Received: (at 1035-done) by emacsbugs.donarmstrong.com; 20 Dec 2008 08:03:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.187]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBK83P7X021310 for <1035-done@emacsbugs.donarmstrong.com>; Sat, 20 Dec 2008 00:03:27 -0800 Received: by ti-out-0910.google.com with SMTP id b6so885761tic.1 for <1035-done@emacsbugs.donarmstrong.com>; Sat, 20 Dec 2008 00:03:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=136XpilsW4tpCPIEQPxMzbjnkm6Tu2C6wq5wWYOT+nY=; b=UoO9yUqMHIBgRyOdirPGafWDdXDe8+AK9XkpDXcMRGJfeB9RjjKSWgeBM1EWo0ymIF WyF15LtOAT/MGscnZpP1p5feI/J8Ze4LzL0qvcfK9APWZnFvqwnqKswcPUcCx9w+MZWs eycbQ4H9lkFkdctzSos5x4DqyY9EA9Iwlvvl4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=ejSS/apmNUZIhVYpGttxIOc41wK4JRkyf2dKzONjxmlTVppPjpYys0GI/fntQ/ciLF Hcub1WJijtNJtis9cyD91LEQYTTeW9rXuVUF99QIei1E1W5+A/+VueNeOGSqWfuUZjXl w+2yGroNPiINauu4p98Es+Gz0l31wByZU2Fgo= Received: by 10.110.2.2 with SMTP id 2mr5384791tib.53.1229760205236; Sat, 20 Dec 2008 00:03:25 -0800 (PST) Received: from ?192.168.1.3? ([118.101.181.97]) by mx.google.com with ESMTPS id b7sm3848712tic.3.2008.12.20.00.03.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 20 Dec 2008 00:03:24 -0800 (PST) Sender: Jason Rumney Message-ID: <494CA6AE.9070609@gnu.org> Date: Sat, 20 Dec 2008 16:02:54 +0800 From: Jason Rumney User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: =?UTF-8?B?Sm9oYW4gQm9ja2fDpXJk?= , 1035-done@debbugs.gnu.org Subject: Re: bug#1035: 23.0.60; DOS eol decoding bug References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Johan Bockgård wrote: > Decoding a chunk of DOS text that ends in \r results in an extra chunk > of garbage. > Thanks for reporting it, I have fixed this now. From unknown Tue Aug 19 22:00:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Mon, 19 Jan 2009 15:24:04 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator