# Test fail on debian 3.1

**URL:** <https://www.ruby-forum.com/t/test-fail-on-debian-3-1/88166>\
**Category:** Ferret\
**Created:** [March 8, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/test-fail-on-debian-3-1/88166 "2007-03-08T17:14:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![linus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f4b2a3/32.png) [@linus](https://www.ruby-forum.com/u/linus)\
**Post date:** [March 8, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/test-fail-on-debian-3-1/88166/1 "2007-03-08T17:14:29Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![linus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f4b2a3/32.png) [@linus](https://www.ruby-forum.com/u/linus)\
**Post date:** [March 10, 2007, 8:12pm UTC](https://www.ruby-forum.com/t/test-fail-on-debian-3-1/88166/2 "2007-03-10T20:12:17Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![linus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/f4b2a3/32.png) [@linus](https://www.ruby-forum.com/u/linus)\
**Post date:** [March 8, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/test-fail-on-debian-3-1/88166/3 "2007-03-08T23:10:21Z")

</div>

On 3/9/07, Linus [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
