Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id p27HW55q003220 for ; Mon, 7 Mar 2011 18:32:06 +0100 Received: (qmail 8563 invoked by alias); 7 Mar 2011 17:32:00 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 07 Mar 2011 17:31:59 -0000 Received: from relay2.uni-heidelberg.de (EHLO relay2.uni-heidelberg.de) [129.206.210.211] by mx0.gmx.net (mx043) with SMTP; 07 Mar 2011 18:31:59 +0100 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p27HTmV6011105 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 7 Mar 2011 18:29:48 +0100 Received: from listserv.uni-heidelberg.de (localhost.localdomain [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p27Dp35A009675; Mon, 7 Mar 2011 18:29:47 +0100 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 1226083 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Mon, 7 Mar 2011 18:29:47 +0100 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.1/8.13.1) with ESMTP id p27HTlcM028362 for ; Mon, 7 Mar 2011 18:29:47 +0100 Received: from ueamailgate01.uea.ac.uk (ueamailgate01.uea.ac.uk [139.222.131.184]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id p27HTVO4011018 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 7 Mar 2011 18:29:35 +0100 Received: from ueams02.uea.ac.uk (ueams02.uea.ac.uk [139.222.131.131]) by ueamailgate01.uea.ac.uk (8.13.8/8.13.8) with ESMTP id p27HTTvn026254; Mon, 7 Mar 2011 17:29:29 GMT Received: from [139.222.112.172] by ueams02.uea.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1PweFI-0003DE-Uy; Mon, 07 Mar 2011 17:29:24 +0000 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 References: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN, outgoing) X-CanIt-Geo: ip=139.222.131.131; country=GB; region=I9; city=Norwich; latitude=52.6333; longitude=1.3000; http://maps.google.com/maps?q=52.6333,1.3000&z=6 X-CanItPRO-Stream: UEA:outgoing (inherits from UEA:default,base:default) X-Canit-Stats-ID: 71779167 - 0dc585e10f20 - 20110307 X-Scanned-By: CanIt (www . roaringpenguin . com) on 139.222.131.184 Message-ID: <4D7515F9.6080300@morningstar2.co.uk> Date: Mon, 7 Mar 2011 17:29:29 +0000 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Joseph Wright Subject: Re: Bug in \tl_replace_in:Nnn and friends To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p77e5KAPs1l6v/Sb97LojnDtMgfETrECMLUO9erHzOJe7j3G660N4yBY6XHH YPYtmQj6mbYUTZ3LnaFANLWrKE7/wIDhnv+VrW0hxOapLRUwuY9oBqo5h+Dh9B42XlFTMTKlXDju GaV8Q==V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 6646 On 07/03/2011 17:18, Bruno Le Floch wrote: > Hello, > > I'm not sure whether this is the right place to send a bug report on > l3tl. The following code causes a runaway argument. I didn't look yet > at the implementation, but if needed, I can propose a bug fix some > time this week. > > \RequirePackage{expl3} > \ExplSyntaxOn > \tl_new:Nn \g_my_tl {aabono} > \tl_replace_in:Nnn \g_my_tl {bonobo} {whatever} > > Basically what happens is that the string we are looking for is put > directly after the `\g_my_tl`, forming `bonobo`. This `bonobo` is > replaced, and then the termination tries to remove the extra > `bonobo\q_stop` which was added. This fails. The only way out is > apparently to use two markers. It has been done a couple of times > before (stringstring, perhaps?), so I just need to hunt for the > reference. > > aabono -> aabonobonobo\q_stop -> aawhatevernobo\q_stop -> BOOM! Hello Bruno, Thanks for the bug report. I'll aim to fix it in the SVN today, and then do a CTAN release. -- Joseph Wright