[email protected]
[Top] [All Lists]

Bug#290445: marked as forwarded (using libgtk2-ruby leads to syntax erro

Subject: Bug#290445: marked as forwarded using libgtk2-ruby leads to syntax errors on some valid input
From: Debian Bug Tracking System
Date: Fri, 14 Jan 2005 09:22:33 -0800
Your message dated Fri, 14 Jan 2005 15:43:21 +0000
with message-id <[email protected]>
has caused the Debian Bug report #290445,
regarding using libgtk2-ruby leads to syntax errors on some valid input
to be marked as having been forwarded to the upstream software
author(s) Lista Ruby-gnome2 <[email protected]>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at 290445-forwarded) by bugs.debian.org; 14 Jan 2005 15:43:28 +0000
>From [email protected] Fri Jan 14 07:43:28 2005
Return-path: <[email protected]>
Received: from muse.19inch.net [] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CpTbk-00035p-00; Fri, 14 Jan 2005 07:43:28 -0800
Received: from daf by muse.19inch.net with local (Exim 3.35 #1 (Debian))
        id 1CpTbd-000811-00; Fri, 14 Jan 2005 15:43:21 +0000
Date: Fri, 14 Jan 2005 15:43:21 +0000
To: Lista Ruby-gnome2 <[email protected]>
Cc: [email protected]
Subject: Re: Bug#290445: using libgtk2-ruby leads to syntax errors on some 
valid input
Message-ID: <[email protected]>
Mail-Followup-To: Lista Ruby-gnome2 
<[email protected]>,
        [email protected]
References: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.5.6+20040907i
From: Dafydd Harries <[email protected]>
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02


Here is another bug filed in Debian, about the GTK2 binding. It is a
strange problem, that seems to break "require". Any ideas?

Ar 14/01/2005 am 08:23, ysgrifennodd Yusei:
> Package: libgtk2-ruby1.8
> Version: 0.11.0-2
> Hi,
> This is a bug that happened on a script located here:
> http://yusei.ragondux.com/files/gnocatan/camato-0_6_6.tar.gz
> I tried to isolate the problem (see below) but a full description might
> help.
> I'm using a hash for internationalization: in the file fr.rb, one has a
> hash for the french translation of the strings. The encoding in this
> file is ISO-8859-1, and the hash looks like this:
> $locale = {
>   "Untitled - Camato" => "Sans titre - Camato",
>   'Brick' => 'Argile',
>   'Grain' => 'Blé',
>   'Lumber' => 'Bois',
> ...
> A file like this one is chosen at runtime and included to get the
> translations. That worked till 'recently' (I'd say that it worked with
> ruby 1.8.1 packages), but now I get SyntaxErrors:
> $ ./camato
> ./camato:48:in `require': ./fr.rb:37: syntax error (SyntaxError)
>   'Lumber' => 'Bois',
>          ^
> ./fr.rb:37: syntax error
>   'Lumber' => 'Bois',
>                    ^    from ./camato:48
> After some trials, I found that the error comes just after every string
> that end with "é" (&eacute;). I suppose that it confuses the parser, and
> it doesn't see the quote or double-quote after that character. In fact,
> if I add two spaces after the ending "é", everything works (looks like a
> Unicode problem).
> However, the exact same hash table in a separate script works well
> untill I require 'gtk2'. For example, if fr.rb contains a hash like the
> one above:
> ---
> require 'gtk2'
> line = 'Marché'
> print line, "\n"
> hash = { 'test' => 'Blé', 'test2' => 'AAA' }
> require('fr.rb')
> print $locale['Grain'], "\n"
> ---
> This fails in the 'require' instruction, and not before, as I'd have
> expected.
> I'm using ruby1.8 version 1.8.2-2, on unstable.
> [email protected] but the problem remains with something else
> Thanks in advance,
> Yusei


To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#290445: marked as forwarded (using libgtk2-ruby leads to syntax errors on some valid input), Debian Bug Tracking System <=