[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Alternate fix, replace "•" with "\u2022" in line 465.

Explanation: '•' is a non-ASCII character. If you build this outside of a build machine, it probably builds as you likely have the LANG environment variable set. Unset, it defaults to US-ASCII.

- Sam Ruby


Reply to: