From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51778 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt Minimals parsing of .tui broken with ruby 1.9.1 in Windows Date: Tue, 14 Jul 2009 10:02:46 +0200 Message-ID: <4A5C3BA6.3020801@wxs.nl> References: <1781d7210907131038o6c006ac4q8372f5d7f3ade447@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1247558664 14214 80.91.229.12 (14 Jul 2009 08:04:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jul 2009 08:04:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 14 10:04:17 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MQczN-0008Fd-TT for gctc-ntg-context-518@m.gmane.org; Tue, 14 Jul 2009 10:03:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 84C151FB89; Tue, 14 Jul 2009 10:03:44 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29365-06; Tue, 14 Jul 2009 10:03:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8422E1FB3C; Tue, 14 Jul 2009 10:03:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 54D5F1FB3C for ; Tue, 14 Jul 2009 10:03:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32383-04-7 for ; Tue, 14 Jul 2009 10:02:51 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 205981FB38 for ; Tue, 14 Jul 2009 10:02:51 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6E82oJW031954 for ; Tue, 14 Jul 2009 10:02:50 +0200 Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 26653-1840426 for ; Tue, 14 Jul 2009 10:02:50 +0200 User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <1781d7210907131038o6c006ac4q8372f5d7f3ade447@mail.gmail.com> X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=15; city=Almelo; latitude=52.3500; longitude=6.6667; http://maps.google.com/maps?q=52.3500,6.6667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 260384241 - 8001b6903792 - 20090714 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51778 Archived-At: Jose Augusto wrote: > Hello all, > > I want to report a problem that is either in ConTeXt, or in ruby 1.9.1 > (last version of ruby). More probably, the problem has to do with ruby > handling non-ASCII characters. I have no means of trying Linux, Solaris, > etc... > Anyone using ConTeXt with ruby 1.9.1 will face it probably (at least in > Windows :-) > > The problem happens with all files, even with the simple "Hello": > > \starttext > Hello World > \stoptext > > After installing ConTeXt Minimals (the devel version) yesterday, > I ran the above example with ruby 1.9.1-p129 in Windows > (both Win 2000 and XP show the problem). (maybe mojca can patch this in core-uti.mkii: ): % \appendtoks % \immediatewriteutilitycommand{\thisisbytesequence{\testbytesequence}}% % \to \everyopenutilities \let\testbytesequence \empty % keep this \let\thisisbytesequence\gobbleoneargument % keep this The reason for this test is that in the past there were engines around that were 8 bit but configured to be 7 bit. Especially tetex was a problem but as that is now obsolete we can remove this test. > Meanwhile I compiled and tried several versions of Ruby, and found the > following pattern of problems: > > ruby 1.9.1p129 (2009-05-12 revision 23412) [i386-mingw32] PROBLEM > ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-mingw32] PROBLEM > ruby 1.9.0 (2008-10-04 revision 19669) [i386-mingw32] No problem > ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mingw32] No problem > ruby 1.8.6 (2009-06-08 patchlevel 369) [i386-mingw32] No problem > > So, whatever it is, it is broken with ruby 1.9.1. > All the versions of ruby were compiled in Windows using the mingw toolchain, > with GCC 3.4.5. actually, ruby 1.9+ broke the scripts anyway, as some file related functionality was no longer available (and moved to modules) so i already adapted all the ruby scripts >>>From the debugging lines that are expelled, it is clear that the line in the > ..tui file that triggers the problem is: > > c \thisisbytesequence{ ...non-ASCII codes... } > > and, precisely, it s the second line of the 'case': > > when /^c (.*)$/o then @plugins.reader('MyCommands', [$1]) > > which processes the .tui line and triggers the 'rescue' clause. So I think > the problem lies in the "digestion" > of non-ASCII characters by the last version of Ruby. looks that way ... quite disturbing if they changed the default; maybe they move to utf8 but then i'd expect that to happen in 2+ versions thanks for looking into it Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________