From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83805 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: problem with lua io.lines Date: Wed, 14 Aug 2013 20:05:28 +0600 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1376489159 14075 80.91.229.3 (14 Aug 2013 14:05:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 14:05:59 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 14 16:06:02 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9bi6-0000LW-B9 for gctc-ntg-context-518@m.gmane.org; Wed, 14 Aug 2013 16:06:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7BC9E101F7; Wed, 14 Aug 2013 16:05:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mb1kHSu4XOaS; Wed, 14 Aug 2013 16:04:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A26E5101FA; Wed, 14 Aug 2013 16:04:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 756DD101FA for ; Wed, 14 Aug 2013 16:04:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id q+QM8xse12si for ; Wed, 14 Aug 2013 16:04:37 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id CA416101F7 for ; Wed, 14 Aug 2013 16:04:37 +0200 (CEST) Original-Received: from thesan.fiee.net (thesan.fiee.net [178.77.74.245]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7EE5Vpr005566 for ; Wed, 14 Aug 2013 16:05:31 +0200 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=fiee.net; b=gD56ax5PydyGqaR1saTVuoFsNZroTwm2frUKmt/aNz81YhO8oCIbh1iBcKuFy7ycZf2ZoN91/0wl+4j60A3JbByP1UQj7ujuFVitqwDa/EV//ybmKMJuPszIGzluscvB; h=Received:Received:From:Content-Type:Content-Transfer-Encoding:Subject:Message-Id:Date:To:Mime-Version:X-Mailer; Original-Received: (qmail 13648 invoked from network); 14 Aug 2013 16:05:31 +0200 Original-Received: from unknown (HELO ?192.168.0.100?) (95.87.94.219) by thesan.fiee.net with ESMTPSA (AES128-SHA encrypted, authenticated); 14 Aug 2013 16:05:31 +0200 X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.9972 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=178.77.74.245; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06KcC5vCG - a71a60678eab - 20130814 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83805 Archived-At: Hi, after a long time I'm playing with ConTeXt again=85 Current beta MkIV seems to have a bug in the Lua function io.lines: for myline in io.lines(myfile) do logs.report(myline) end "myfile" just contains one line with a number, without return/newline. If the number has more than one digit, I get single digits as "myline". Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________