Test fail on debian 3.1

I have a problem, I use utf all over a rails site, but the search failes
to search characters with acccents…

I try to debug it, and i had run unit tests for ferret, can those
failures cose problems?

/usr/lib/ruby/gems/1.8/gems/ferret-0.11.3/test/ ruby test_all.rb
Loading once
Loaded suite test_all
Started
................F.............................................FF...........................................................................................FF...FF
Finished in 4.729505 seconds.

  1) Failure:
test_custom_filter(CustomAnalyzerTest)
[./unit/../unit/index/../../unit/store/../../unit/analysis/tc_analyzer.rb:516]:
 expected but was
.

  2) Failure:
test_letter_analyzer(LetterAnalyzerTest)
[./unit/../unit/index/../../unit/store/../../unit/analysis/tc_analyzer.rb:100]:
 expected but was
.

  3) Failure:
test_letter_tokenizer(LetterTokenizerTest)
[./unit/../unit/index/../../unit/store/../../unit/analysis/tc_token_stream.rb:73]:
 expected but was
.

  4) Failure:
test_standard_analyzer(StandardAnalyzerTest)
[./unit/../unit/index/../../unit/store/../../unit/analysis/tc_analyzer.rb:275]:
 expected but was
.

  5) Failure:
test_standard_tokenizer(StandardTokenizerTest)
[./unit/../unit/index/../../unit/
 expected but was
.

  6) Failure:
test_white_space_analyzer(WhiteSpaceAnalyzerTest)
[./unit/../unit/index/../../un
 expected but was
.

  7) Failure:
test_whitespace_tokenizer(WhiteSpaceTokenizerTest)
[./unit/../unit/index/../../u
 expected but was
.

162 tests, 12082 assertions, 7 failures, 0 errors

David B. wrote:

You need to have a UTF-8 locale installed or Ferret doesn’t know how
to deal with UTF-8 characters. Try typing locale at the command line
to see what locale you have installed.

That was it, thanks!

On 3/9/07, Linus removed_email_a[email protected] wrote:

Started
test_letter_analyzer(LetterAnalyzerTest)
GÃ":55:62:1]> expected but was
test_standard_tokenizer(StandardTokenizerTest)
<token[“ÃÃGîÃÃïÃÃìÃÃÃ
G”:55:60:1]>.

  1. Failure:
    test_whitespace_tokenizer(WhiteSpaceTokenizerTest)
    [./unit/…/unit/index/…/…/u
    <token["ÃÃ ":55:86:1]> expected but was
    <token[“ÃÃGîÃÃïÃÃìÃÃÃ
    G”:55:60:1]>.

162 tests, 12082 assertions, 7 failures, 0 errors

You need to have a UTF-8 locale installed or Ferret doesn’t know how
to deal with UTF-8 characters. Try typing locale at the command line
to see what locale you have installed.

Cheers,
Dave

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs