From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79851 Path: news.gmane.org!not-for-mail From: =?ISO-8859-2?Q?Michal_Kvasni=E8ka?= Newsgroups: gmane.comp.tex.context Subject: TeXexec / mptex / Ruby bug with Unicode letters Date: Tue, 11 Dec 2012 09:00:05 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1355212821 29214 80.91.229.3 (11 Dec 2012 08:00:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2012 08:00:21 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 11 09:00:34 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TiKlQ-0006tu-Un for gctc-ntg-context-518@m.gmane.org; Tue, 11 Dec 2012 09:00:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28AD610246; Tue, 11 Dec 2012 09:00:16 +0100 (CET) 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 ZJRRu2fLldKR; Tue, 11 Dec 2012 09:00:09 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 52B571022C; Tue, 11 Dec 2012 09:00:09 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5F0E21022C for ; Tue, 11 Dec 2012 09:00:08 +0100 (CET) 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 BoVhVeOhYM9A for ; Tue, 11 Dec 2012 09:00:07 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 2DFA91020A for ; Tue, 11 Dec 2012 09:00:07 +0100 (CET) Original-Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qBB805Ea006841 for ; Tue, 11 Dec 2012 09:00:05 +0100 Original-Received: by mail-lb0-f169.google.com with SMTP id gk1so3358011lbb.14 for ; Tue, 11 Dec 2012 00:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=eONZprE5lYKnuXUKHA7VKghFka/htSgVMxbwCBbsFLE=; b=hMG4VUjvGLXCH8e9KHNgKY6u5Blzf24sDxqRdfAjBZNCuU8NgYB+BjxDZLoS/46S24 cgTnhMy+WMpBwDqIOYdYVX35FRi/ODvd/4cFrthGDOU2Gefs4JxBejXtVSf8e4CQ/2k2 MT1/NutUaO19/tHMYwImtqH0x4qWlXk68Iiw9na3uWuPnBF/Zl9lNRRBrqcuvSapcjyc ZWA3A/zZq4hhB+7dsZFWeoZt0a3p/YTWPzaQUuiqALO/QkVT8kJDFwlGxVXulWmvWAMs q+5f+ib9oME14ajtXhDvAA3o6HE2oCDsuHyVhkX2gwsRW8jwSlhS9xXVT5e1XPWfBGhx TZsw== Original-Received: by 10.152.124.111 with SMTP id mh15mr16343975lab.20.1355212805331; Tue, 11 Dec 2012 00:00:05 -0800 (PST) Original-Received: by 10.112.10.33 with HTTP; Tue, 11 Dec 2012 00:00:05 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.217.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NIy805g5 - f03168a4afb7 - 20121211 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:79851 Archived-At: Hallo. It seems that something was changed in Ruby that makes texexec --mptex not working with some Unicode letters, e.g. rcaron. This file compiles all right with texexec --mptex: beginfig(1); label(textext("a"),origin); endfig; end. However, when I change "a" to "=F8" (unicode for rcaron or \v{r}), it failes with this complaint: /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/ba= se/switch.rb:21: Use RbConfig instead of obsolete and deprecated Config. /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ruby/ba= se/tex.rb:1982:in `doruntexmp': invalid byte sequence in US-ASCII (ArgumentError) from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ru= by/base/tex.rb:1525:in `runtexmp' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ru= by/base/tex.rb:1087:in `block in processmptex' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ru= by/base/tex.rb:1084:in `each' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ru= by/base/tex.rb:1084:in `processmptex' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ru= by/texexec.rb:76:in `mptex' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ru= by/base/switch.rb:133:in `execute' from /home/qasar/programy/context.beta/tex/texmf-context/scripts/context/ru= by/texexec.rb:791:in `
' It crashes both with the latest beta (downloaded some minutes ago) and with the latest stable (downloaded yesterday). It crashes also with the stable instalation that was working previously. Since it worked properly with Ubuntu 12.04 and is not working (with the same ConTeXt installation) with Ubuntu 12.10, an explanation might be a change in Ruby that makes some ConTeXt code invalid. I'm using * Ubuntu 12.10 (Linux) * Ruby ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux] * texexec * ConTeXt standalone (minimal) distribution from the ConTeXt Garden, latest beta, latest stable and some older version that was previously working. Since I'm using it to create my teaching slides, I would really appreciate if you could make some patch (or help me go around somehow). Best wishes, Michal P.S. I apologize if the bug is known already; I haven't found it in the mailing list. ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________