Bug#676114: Ruby help needed (Was: Bug#676114: wordnet: FTBFS: debian/wn-for-goldendict.rb:465: invalid multibyte char (US-ASCII))

Andreas Tille andreas at an3as.eu
Tue Jun 5 16:53:38 UTC 2012


Hi Sam,

On Tue, Jun 05, 2012 at 11:26:42AM -0400, Sam Ruby wrote:
> On 06/05/2012 10:08 AM, Andreas Tille wrote:
> >>>debian/wn-for-goldendict.rb:465: invalid multibyte char (US-ASCII)
> >>>debian/wn-for-goldendict.rb:465: invalid multibyte char (US-ASCII)
> >>>debian/wn-for-goldendict.rb:465: syntax error, unexpected $end, expecting ')'
> >>>     print_array(@words, 'Syn', "[c blue]•[/c]")
> 
> Probable fix: add the following at the top of the file (as first
> line if there is no #! line, or immediately after that):
> 
>   # encoding: utf-8

OK, sounds quite reasonable and leads to a next (different) error:

                ruby debian/wn-for-goldendict.rb > goldendict-wordnet.dsl; \
        fi
WARNING: sentidx.vrb format error: ["pet%2:35:00::"]
debian/wn-for-goldendict.rb:300:in `initialize': undefined method `times' for "\x01":String (NoMethodError)
        from debian/wn-for-goldendict.rb:158:in `new'
        from debian/wn-for-goldendict.rb:158:in `get_data'
        from debian/wn-for-goldendict.rb:648:in `block (2 levels) in <main>'
        from debian/wn-for-goldendict.rb:647:in `each'
        from debian/wn-for-goldendict.rb:647:in `block in <main>'
        from debian/wn-for-goldendict.rb:644:in `foreach'
        from debian/wn-for-goldendict.rb:644:in `<main>'
make: *** [goldendict-wordnet.dsl] Error 1

Any further hint?

Thanks for your quick reply anyway

     Andreas.

-- 
http://fam-tille.de





More information about the debian-science-maintainers mailing list