From unknown Mon Aug 18 14:15:50 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#11286 <11286@debbugs.gnu.org> To: bug#11286 <11286@debbugs.gnu.org> Subject: Status: 24.1.50; xml-parse-region returns "Invalid character" if last line is a comment Reply-To: bug#11286 <11286@debbugs.gnu.org> Date: Mon, 18 Aug 2025 21:15:50 +0000 retitle 11286 24.1.50; xml-parse-region returns "Invalid character" if last= line is a comment reassign 11286 emacs submitter 11286 Thamer Mahmoud severity 11286 important thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 20 03:56:24 2012 Received: (at submit) by debbugs.gnu.org; 20 Apr 2012 07:56:24 +0000 Received: from localhost ([127.0.0.1]:43440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SL8ha-0005Iz-4h for submit@debbugs.gnu.org; Fri, 20 Apr 2012 03:56:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54520) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SL8hX-0005Ik-UE for submit@debbugs.gnu.org; Fri, 20 Apr 2012 03:56:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SL8h1-0004tG-09 for submit@debbugs.gnu.org; Fri, 20 Apr 2012 03:55:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:35726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SL8h0-0004tB-Qp for submit@debbugs.gnu.org; Fri, 20 Apr 2012 03:55:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34263) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SL8gu-0001oj-KD for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 03:55:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SL8gs-0004sG-JW for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 03:55:40 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:59960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SL8gs-0004s6-9q for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 03:55:38 -0400 Received: by wibhj13 with SMTP id hj13so305262wib.12 for ; Fri, 20 Apr 2012 00:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:subject; bh=4liShxTh0MAEztAep/7KBC3zTUmEHzbW1VbIPBM3EtI=; b=rnB9vDaOcUVaOlD2UyQS/kPweSf7fenxWY5nJOobZboC9Y9tV8Fbprybqd+rt2fy9P fGKLDWaddWe1evevCSn/Mx7Eaw1Tt9DkPRMs0UY+tg4dSJZuLpiV7tYik1gmGsOVQ2ol glCrrSzJH6IRJksdCdRrS8xdCCRVXZkT1R69rN22gPTWlj+Qp/kZ4pGt8htllP9fMIXm 14GUMem5b2BYJ3ovBqPvZrPgTGaI4sR6+s7UbezowjpsilTorgxWs8lgKhhYkgE6RMrh uAbDJsiXky0MMdVUNiUFQu5Kyj873jIYXIOuObaneU8PiNnzm+xi3h0AhonW/q1Tqm5U L6og== Received: by 10.180.86.132 with SMTP id p4mr12555674wiz.15.1334908535360; Fri, 20 Apr 2012 00:55:35 -0700 (PDT) Received: from matara.newkuwait.org ([178.61.79.211]) by mx.google.com with ESMTPS id k6sm3726749wie.9.2012.04.20.00.55.31 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 Apr 2012 00:55:34 -0700 (PDT) Received: from zemblan.newkuwait.org ([192.168.1.3]) by matara.newkuwait.org with esmtp (Exim 4.72) (envelope-from ) id 1SL8gi-0007OH-QF for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 10:55:28 +0300 Received: from thamer by zemblan.newkuwait.org with local (Exim 4.72) (envelope-from ) id 1SL8gi-0007bh-G1 for bug-gnu-emacs@gnu.org; Fri, 20 Apr 2012 10:55:28 +0300 Date: Fri, 20 Apr 2012 10:55:28 +0300 Message-Id: From: Thamer Mahmoud To: bug-gnu-emacs@gnu.org Subject: 24.1.50; xml-parse-region returns "Invalid character" if last line is a comment X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Hi, While using nnrss.el I've been getting the following error with some of my feeds: Not valid XML (error XML: (Well-Formed) Invalid character) and w3-parse doesn't work (void-function w3-parse-buffer) Looking at the feeds in question, I noticed that the last line is a comment. Once I deleted the comment line nnrss.el worked fine. The following extract reproduces the error: (with-temp-buffer (insert "\n" "\n" "\n" "\n") (xml-parse-region (point-min) (point-max))) The above extract works fine in Emacs 23 so this seems like a regression. Thanks. In GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2012-04-19 on zemblan Bzr revision: 107966 lekktu@gmail.com-20120419172026-s520j9fu9u7ny32l Windowing system distributor `The X.Org Foundation', version 11.0.10707000 Configured using: `configure '--with-x-toolkit=lucid' '--without-gconf' '--without-selinux'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t -- Thamer From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 20 04:19:25 2012 Received: (at control) by debbugs.gnu.org; 20 Apr 2012 08:19:26 +0000 Received: from localhost ([127.0.0.1]:43464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SL93t-0006eO-By for submit@debbugs.gnu.org; Fri, 20 Apr 2012 04:19:25 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:50658 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SL93r-0006eH-H6 for control@debbugs.gnu.org; Fri, 20 Apr 2012 04:19:24 -0400 Received: from [155.69.18.143] (port=50529 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SL93S-0005W0-PN for control@debbugs.gnu.org; Fri, 20 Apr 2012 04:18:59 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: severity 11286 important Date: Fri, 20 Apr 2012 16:18:51 +0800 Message-ID: <87sjfyrf2s.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) severity 11286 important thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 21 05:55:42 2012 Received: (at 11286) by debbugs.gnu.org; 21 Apr 2012 09:55:42 +0000 Received: from localhost ([127.0.0.1]:45115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLX2a-00012W-LM for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:55:40 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:47968 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLX2Y-00012H-Fx for 11286@debbugs.gnu.org; Sat, 21 Apr 2012 05:55:39 -0400 Received: from bb116-14-12-6.singnet.com.sg ([116.14.12.6]:39655 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SLX23-00036C-4w; Sat, 21 Apr 2012 05:55:07 -0400 From: Chong Yidong To: Thamer Mahmoud Subject: Re: bug#11286: 24.1.50; xml-parse-region returns "Invalid character" if last line is a comment References: Date: Sat, 21 Apr 2012 17:55:00 +0800 In-Reply-To: (Thamer Mahmoud's message of "Fri, 20 Apr 2012 10:55:28 +0300") Message-ID: <87ipgtwgsr.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11286 Cc: 11286@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Thamer Mahmoud writes: > (with-temp-buffer > (insert "\n" > "\n" > "\n" > "\n") > (xml-parse-region (point-min) (point-max))) Thanks for the bug report and the clear testcase. This regression was caused by the fix to Bug#10405. I've committed a fix to the emacs-24 branch. From debbugs-submit-bounces@debbugs.gnu.org Sat Apr 21 05:56:13 2012 Received: (at control) by debbugs.gnu.org; 21 Apr 2012 09:56:13 +0000 Received: from localhost ([127.0.0.1]:45119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLX37-00013h-8k for submit@debbugs.gnu.org; Sat, 21 Apr 2012 05:56:13 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:47978 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SLX35-00013a-HD for control@debbugs.gnu.org; Sat, 21 Apr 2012 05:56:11 -0400 Received: from bb116-14-12-6.singnet.com.sg ([116.14.12.6]:39670 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SLX2a-0003Ec-SI for control@debbugs.gnu.org; Sat, 21 Apr 2012 05:55:41 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11286 Date: Sat, 21 Apr 2012 17:55:34 +0800 Message-ID: <87r4vho1d5.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 11286 thanks From unknown Mon Aug 18 14:15:50 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 19 May 2012 11:24:03 +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