Ar 14/01/2005 am 08:23, ysgrifennodd Yusei: > 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 "é" (é). 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).
Hi Yusei, I've talked with the upstream author, and it seems that this is because the GTK2 binding changes the value of $KCODE. After discussion, it was decided that they will no longer do this in the future. I'll look into patching the Debian packages to have the same behaviour. In the meantime, you can work around this by using UTF-8 instead of ISO-8859-1 for your source code, or by changing the value of $KCODE after the "require 'gtk2'" statement. -- Dafydd -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]